如果你在Python交互环境下敲代码,还要特别留意缩进,并且退出缩进需要多敲一行回车
那句话什么意思?
age = 20 if age >= 18: print 'your age is', age print 'adult' print 'END' age = 20 if age >= 18: print 'your age is', age print 'adult' print 'END'
结果没区别啊?
那句话什么意思?
age = 20 if age >= 18: print 'your age is', age print 'adult' print 'END' age = 20 if age >= 18: print 'your age is', age print 'adult' print 'END'
结果没区别啊?
2017-11-14
举报