python 3与python2 区别 更新ing

python3

print("内容","内容....") 

python2

print "abc","abcd" ...

python3中内容不换行

print("abc",end="") //默认end = "\n"

python2中

print "abc",  //添加逗号即可

你可能感兴趣的:(python 3与python2 区别 更新ing)