python,替换掉print自动换行

print打印完会自动换行,使用end进行替换

print(a,end=‘’)

此时光标会跟在打印后面

 

posted @ 2021-12-29 16:06  一起开会  阅读(203)  评论(0)    收藏  举报