python中的print输出默认是换行的,下面我们就来看一下python中设置输出不换行的方法。
python 2.x, print 不换行
>>> print x,
python 3.x print 不换行
>>> print(x, end="")