python版本區別

input函數 Python3中input獲得的爲str;Python2的input的到的爲int型,Python2的raw_input獲得的爲str類型python print函數 Python 2中的print語句被Python 3中的print()函數取代,這意味着在Python 3中必須用括號將須要輸出的對象括起來。函數 在Python 2中使用額外的括號也是能夠的。但反過來在Python
相關文章
相關標籤/搜索