不换行输出,end=''

print(1,2,3,end='')# 不换行,一行内 输出下一列的值
print(4)
'''
1 2 34
'''

 

posted @ 2023-07-09 16:55  胖豆芽  阅读(5)  评论(0编辑  收藏  举报