python脚本中使用eval(),运行报错的解决方法
摘要:原代码: 此代码执行后报错: Traceback (most recent call last): File "C:\Python27\test3-3.py", line 2, in <module> x=eval(input("请输入一个数据:"))TypeError: eval() arg 1
阅读全文
posted @
2020-07-21 15:44
sunnyA95
阅读(6656)
推荐(1)
Python自带的IDLE无法保存脚本
摘要:使用IDLE编写脚本,但是脚本无法正确保存,查找原因,原来是脚本中带有中文字符。在脚本前加上#coding:UTF-8,就能正常保存了
阅读全文
posted @
2020-07-21 15:23
sunnyA95
阅读(1094)
推荐(0)