像這種的話,怎么把回車\n放進去,并起到作用?
請把下面的字符串用r'''...'''的形式改寫,并用print打印出來:
'\"To be, or not to be\": that is the question.\nWhether it\'s nobler in the mind to suffer.'
怎么把回車\n放進去,并起到作用?
請把下面的字符串用r'''...'''的形式改寫,并用print打印出來:
'\"To be, or not to be\": that is the question.\nWhether it\'s nobler in the mind to suffer.'
怎么把回車\n放進去,并起到作用?
2017-06-26
舉報
2017-06-26
謝謝各位的回答,我想做的其實并不是自己手動回車,只是想把\n放進去,來起到作用
2017-06-26
''' "To be, or not to be ": that is the question.
Whether it's nobler in the mind to suffer.'''
2017-06-26
print '''"To be, or not to be":
that is the question.
Whether it's nobler in the mind to suffer.'''