擅长:python、mysql、java
<p>我会写这样的东西:</p>
<pre><code>print ("You are traveling through deciduous forest.\n"
"There is nothing going on, except a few squirrels and a hedge.\n"
"Squirrels are fighting over nuts and a hedge is getting fat eating an apple.\n"
"Then you see a wide, deep river. The stream is very strong.")
</code></pre>
<p>上面的括号隐式地继续字符串。见<a href="https://docs.python.org/2.7/reference/lexical_analysis.html#string-literal-concatenation" rel="nofollow noreferrer">the Python docs</a>。例如:</p>
^{pr2}$
<p>和<code>print "foo bar"</code></p>
<p>会产生相同的输出。注意“foo”后面的空格。在</p>
<p>注意,<code>print</code>语句和第一个括号之间有一个空格。在python3中,<code>print</code>是一个函数,那里应该没有空格。在</p>