在输出后面加上sep=' '

a='h'
b='o'
print(a,'ell',b,sep='')

不加sep:

python输出空行 输出空格python_python输出空行

加上sep:

python输出空行 输出空格python_python_02