2.7版本
[code]str1=input('请输入你的数字:')
get=int(str1)
if str1<=100 and str1>=0:
print 'OK'
else :
print 'error'
[/code]是OK的.但是3.3中不行,当然 我这样写也是不对滴、、、、
本文标题: | [python] print测试 |
本文链接: (转载请附上本文链接) | https://vulsee.com/archives/vulsee_2014/0509_805.html |