Python input 与raw_input的区别。
刚刚写个if else的demo。
num = raw_input('Enter a num:')
if num > 0:
print 'the
num is positive'
elif num
print 'the
num is negative'
else:
print 'the
num is zero'
raw_input()
然后执行程序之后,不管输入什么,
原创
2017-05-22 09:48:07 ·
352 阅读 ·
0 评论