The Python Apprentice
上QQ阅读APP看书,第一时间看更新

Concatenation of adjacent strings

Adjacent literal strings are concatenated by the Python compiler into a single string:

>>> "first" "second"
'firstsecond'

Although at first this seems rather pointless, it can be useful for nicely formatting code as we'll see later.