python 如何让输出的内容不换行

如题所述

Python2.x的写法是:print 'string',
Python3.x的写法是:print('string', end='')
温馨提示:答案为网友推荐,仅供参考
相似回答