python不换行

 

例如:

# 在默认情况下,print 函数输出内容之后,会自动在内容末尾增加换行
print("*",end="")
print("*")

结果:

 

posted @ 2020-07-08 21:03  谜语+  阅读(303)  评论(0编辑  收藏  举报