使用反斜杠(\)
```python
print('Hello World\nWelcome to Python!')
使用括号隐式换行
```python
print('Hello World', 'Welcome to Python!')
使用三引号创建多行字符串
```python
print("""Hello World
Welcome to Python!""")
使用转义字符(\n)
```python
print('Hello World\nWelcome to Python!')
请注意,在Python中,语句结束不需要分号(;),但在需要换行时,分号用来分隔语句。最后一行不要求必须有分号,但加上也不会出错。