這題目有問題把
string = r"""'\"To be, or not to be\": that is the question.\nWhether it\'s nobler in the mind to suffer.'""" print (string)?
#這都通不過?
string = r"""'\"To be, or not to be\": that is the question.\nWhether it\'s nobler in the mind to suffer.'""" print (string)?
#這都通不過?
2017-01-05
舉報
2017-02-21
raw字符串里的字符不需要轉義符"\"了
2017-01-05
麻煩<pre></pre>吧代碼整理一下
2017-01-05
string = r"""'\"To be, or not to be\": that is the question.\nWhether it\'s nobler in the mind to suffer.'""" print (string)?