在Python中,可以使用三引号(‘’’ 或 “”")来输入多行字符串。例如:
string = ''' This is a multi-line string. It can contain multiple lines of text. '''
或者使用转义字符(\)来换行:
string = 'This is a multi-line string.\ It can contain multiple lines of text.'