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