怎样使 Python 输出时不换行

2025-06-26 06:47:27
推荐回答(1个)
回答1:

python 2.x, print 不换行
>>> print x,
python 3.x print 不换行
>>> print(x, end="")