Python版本區別,Python 3和Python 2區別詳解

Python 3.x print函數代替了print語句 在 Python2.x 中,輸出數據使用的是 Print 語句,例如:python >>> print "3,4" 3,4 或者 >>> print(3,4) (3,4) 可是在 Python 3.x 中,print 語句沒有了,取而代之的是 print 函數,例如:函數 >>> print(3,4) 3 4 若是還像 Python 2.x
相關文章
相關標籤/搜索