Python如何换行输出多个变量值而且换行后没有空格

如两个变量:n=123m='hello'要让输出为123hello我只能做到123 hello(hello前有一个空格)

第1个回答  2016-05-23
>>> from __future__ import print_function
>>> n=123
>>> m='hello'
>>> print(n,m,sep='\n')
123
hello
>>>本回答被提问者和网友采纳
第2个回答  2018-05-10

print(n,'\n'+m)

相似回答