2018年7月27日

python报错:TypeError: 'int' object is not subscriptable

摘要: 检查一遍报错的所在行,此报错一般是在整数上加了下标: 比如: a = 4 a = 4 c=a[2] c=a[2] 报错:line 2, in <module> c=a[2] TypeError: 'int' object is not subscriptable 再比如复杂一点的:二维 阅读全文

posted @ 2018-07-27 10:50 乐学习 阅读(24050) 评论(0) 推荐(0) 编辑

pyhon SyntaxError: Non-ASCII character '\xe8' in file xxx on line xx, but no encoding

摘要: import math if __name__ == '__main__': name1 = raw_input("请输入您的编号:") print name1 完整的错误信息如下: File "D:\python\pythons\src\test.py", line 20SyntaxError: 阅读全文

posted @ 2018-07-27 10:17 乐学习 阅读(625) 评论(0) 推荐(0) 编辑

导航