发布时间:2019-08-24 09:26:47编辑:auto阅读(1345)
1. Python2.5中函数调用不需要使用(), 在Python3.1中则必须使用():
如Python 2.5中可以用:print 'Hello world!'
在Python 3.1中必须改用:print ('Hello world!')
2. Python2.5中输入函数可以用raw_input()
在Python3.1中则只能用input(),删除了raw_input()函数
上一篇: H3C题库HCNE的 最新
下一篇: python中级篇--揭秘Python编
46453
44337
35789
33341
28048
24611
23535
18750
18005
16688
4515°
5074°
4606°
4747°
5411°
4367°
4425°
4970°
4865°
6113°