>>> str4 = """This too
... is a multiline one
... built with triple double-quotes."""
>>> str4 #A
'This too\nis a multiline one\nbuilt with triple double-quotes.'
>>> print(str4) #B
This too
is a multiline one
built with triple double-quotes.
在#A和#B中,我们首先隐式地打印str4,然后显式地使用print函数
为什么输出不同
目前没有回答
相关问题 更多 >
编程相关推荐