最新回答 / 路癡boy
為什么在notepad++編就沒有錯,-*- coding: utf-8 -*-? u? 這兩個都要有 ,只有-*- coding: utf-8 -*-這個的話,會出現亂碼
2018-03-08
已采納回答 / CrystalLin
''' ...... '''多行字符串,加上r可以使其中不必轉義'\"To be, or not to be\": that is the question.\nWhether it\'s nobler in the mind to suffer.'原文中第一個\是為了轉義",第二個也一樣,以此類推。所以得到的答案是r'''? ?"To be, or not to be": that is the question.Whether it's nobler in the mind to suffer.'''
2018-03-08