我只是想在Powershell Python Nano虚拟环境中保存一个简单的程序。
但是在保存文件时出现错误。
在本博文的最后也是最后的步骤6中,我终于在其中完成了1-5。程序应保存。
为什么会出现此错误,我该如何解决?
答案 0 :(得分:1)
可能会发生此错误,因为您尝试在受保护的目录中写入。
尝试为项目class Gen<T> {
public doStuff<U>(input: U
/* If T is an instance of number,
then input type U should be an instance of custom type ABC, or
If T is an instance of string,
then input type U should an instance of custom type XYZ, else
compile error */) {
// do stuff with input
}
}
创建目录,并在其中创建脚本。