摘要: 原文链接:http://www.juzicode.com/archives/2225 错误提示: 使用numpy.eye()函数时报NameError: name ‘numpy’ is not defined D:\juzicode>python mod.py... 阅读全文
posted @ 2020-11-24 21:50 桔子code 阅读(616) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.juzicode.com/archives/2228 错误提示: 导入numpy模块,调用模块内的eye()函数,提示: Traceback (most recent call last): File “test.py”, ... 阅读全文
posted @ 2020-11-24 21:20 桔子code 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.juzicode.com/archives/2223 错误提示: 运行解释器,在提示符下面输入“python py文件名称”,提示“SyntaxError: invalid syntax”。 >>> python hello.p... 阅读全文
posted @ 2020-11-24 21:12 桔子code 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.juzicode.com/archives/2217 错误提示: 修改tuple时,提示TypeError: ‘tuple’ object does not support item assignment 可能原因: 1、tu... 阅读全文
posted @ 2020-11-24 21:06 桔子code 阅读(3233) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.juzicode.com/archives/2208 错误提示: 在循环语句中提示语法错误:for x in range(5) ^ SyntaxError: invalid syntax 可能原因: 1、for语句的最后和... 阅读全文
posted @ 2020-11-24 00:58 桔子code 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.juzicode.com/archives/2201 错误提示: 运行py文件,提示:IndentationError: unexpected indent,提示在第3行遇到非预期的缩进。 可能原因: 1、同一个层级的代码... 阅读全文
posted @ 2020-11-24 00:48 桔子code 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 错误提示: 在命令行输入python py文件名称,提示:python: can’t open file ‘hello’: [Errno 2] No such file or directory D:\juzicode>python hellopython: ... 阅读全文
posted @ 2020-11-24 00:38 桔子code 阅读(1292) 评论(0) 推荐(0) 编辑
摘要: 错误提示: 运行py文件,提示 SyntaxError错误: File “hello.py”, line 3 SyntaxError: Non-UTF-8 code starting with ‘\xbd’ in file hello.py on line 3... 阅读全文
posted @ 2020-11-24 00:37 桔子code 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 错误提示: 在cmd窗口输入pip install xyz,提示:“ ‘pip’ 不是内部或外部命令,也不是可运行的程序或批处理文件。 ” D:\juzicode>pip install 2to3'pip' 不是内部或外部命令,也不是可运行的程序或批处理文件... 阅读全文
posted @ 2020-11-24 00:36 桔子code 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://www.juzicode.com/archives/2157 错误提示: 在cmd窗口输入python,提示“ ‘python’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。 ” D:\juzicode>python 'pyt... 阅读全文
posted @ 2020-11-24 00:33 桔子code 阅读(1260) 评论(0) 推荐(0) 编辑