欣喜小松鼠

文章
5
资源
0
加入时间
3年2月3天

python2.7与python3中print的一点不同之处

headfirst python。实验的时候 print("\t",end='')打印制表符不换行, 出错。print在python3.0中与python 2.x中是不同的在python 2.7中打印输出不换行可以这样写 :i = 10while i > 0:          print i,          i = i-110 9 8 7 6 5 4 3 2 1