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
相关文章
相关标签/搜索