python换行
1.反斜杠. \
a = 1 b = 2 c = a +\ b print(c)
longstring = 'this is a long long long long long long long \ string' print(longstring)
2.三引号
longstring1 = '''this is a long long long long long long long string''' print(longstring1) longstring2 = """this is another long long long long long long long string""" print(longstring2)