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()函數
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()函數