代码为python核心编程 p111
出错信息
welcome to the identifier checker v1.0
Testees must be at least 2 chars long.identifier to test? [Finished in 0.0s with exit code 1]Traceback (most recent call last):
File "/home/zhang/git/python-code/chapter_6/idcheck.py", line 7, in <module>
myinput=raw_input('identifier to test? ')
EOFError: EOF when reading a lineEOFError: EOF when reading a line
在终端上运行正常
在sublime上无法运行
原因是 sublime不支输入
解决方法:
可以在terminal中运行
毕竟sublime只是个编辑器
待解决用sublime输入的问题