任務最后面的單引號是不是需要打在里面,那就有四個單引號了,這樣我打出來是錯的
print r'''To be, or not to be": that is the question.
Whether it's nobler in the mind to suffer.''''
print r'''To be, or not to be": that is the question.
Whether it's nobler in the mind to suffer.''''
2020-04-11
舉報
2020-04-11
任務最后是不是沒有單引號呀,四個單引號,會破壞這個公式r'''? '''。所以你可以這樣加一個空格' '''
2020-04-20
最后一個單引號,是為了跟最前面的單引號成對,用來表示這是一個字符串。并不是文本內容,不是需要print出來的內容。
2020-04-12
print r'''"To be, or not to be": that is the question.
Whether it's nobler in the mind to suffer.'''