python3--print换行

print语句输出后自动换行。

1.用end=""控制不换行

print("hello world",end="")

2.用\n控制换行

想要一行间隔需要这样写:

print("hello\nworld")

猜你喜欢

转载自blog.csdn.net/lcczzu/article/details/88864889
今日推荐