随笔分类 -  解决问题

摘要:1.unexpected unident (无法预料的缩进)python依靠indent来缩进。要么全部用空格缩进,要么全部tab键,所以我觉得你的问题是可能缩进有问题。用有些编辑器可以显示tab和空格的。Python对缩进要求很严格的。多行注释符号本身也需要注意缩进。下面的内容会根据上面的多行注释... 阅读全文
posted @ 2015-10-09 09:23 鲁上客 阅读(1885) 评论(0) 推荐(0)
摘要:1. 问题1: sublime text3 中输入汉字,程序正常运行,但是python控制台却无法显示中文。2. 解决方法: 1)安装了ConvertToUTF8 插件但是还是不行。:http://segmentfault.com/a/1190000002461891 2)打开“Tools-->... 阅读全文
posted @ 2015-10-08 11:22 鲁上客 阅读(1276) 评论(0) 推荐(0)
摘要:问题:print "hello" SyntaxError: Missing parenthesesin call to 'print'解决:python3取消了这种用法。使用 print('hello"),这种来输出。python3 语法 和 python2 已经变得有些差别了。python3中,去... 阅读全文
posted @ 2015-10-07 10:10 鲁上客 阅读(1278) 评论(0) 推荐(0)
摘要:1. 问题描述:自己在st3中安装了pylinter插件,但是没有成功,出现如下错误:"Pylinter could not automaticallydetermined the path to lint.py. Please provide one in the settings file us... 阅读全文
posted @ 2015-10-06 15:40 鲁上客 阅读(1447) 评论(0) 推荐(0)