print语句输出后自动换行。
1.用end=""控制不换行
print("hello world",end="")
2.用\n控制换行
想要一行间隔需要这样写:
print("hello\nworld")