s ='Hello'\
''
"ab" "cd" == "abcd"
)myString = 'this is my string literal, ' \
'it continues on the next line'
>>> print myString
"this is my string literal, it continues on the next line"
PyCharm会检测字符串文字中的换行符,并为您执行此操作。尝试编写单个长字符串文字,然后将光标置于光标中间,然后按Enter-PyCharm会将字符串文字拆分为两个单独但相邻的字符串文字,分别位于两行不同的地方,在第一行的末尾加反斜杠。