如题。。。
可能题目不太清除,我放张图就明白了

IDE 是 pycharm ,由于强迫症,这样看起来真不舒服。。。
1
SErHo 2016 年 2 月 5 日 via iPad 强迫症的话处理一下啰 https://docs.python.org/3/library/textwrap.html textwrap.dedent(text)
|
2
hcwhan 2016 年 2 月 5 日
\n
|
3
fourstring OP @SErHo 感谢!
|
4
pynix 2016 年 2 月 5 日 Ruby 自带光环
|
5
RqPS6rhmP3Nyn3Tm 2016 年 2 月 5 日 via iPad
Command option L
|
6
glasslion 2016 年 2 月 6 日
text= ("Line1\n"
"Line2\n" "Line3\n") |
7
fourstring OP @glasslion 不用带+么?
|
8
glasslion 2016 年 2 月 6 日 @fourstring 不用, Python 会自动拼接两个相邻的字符串
|
9
fourstring OP @glasslion 谢谢!
|