标题: python 17课 类型转换 [打印本页] 作者: jane 时间: 2013-10-18 10:39 标题: python 17课 类型转换 a=input("please input\n")
if a:
print 'this is not a blank string'
为什么输入英文字母 会报错 数字就没错
Traceback (most recent call last):
File "F:/Python/bool.py", line 1, in <module>
a=input("please input\n")
File "<string>", line 1, in <module>
NameError: name 'h' is not defined