如果原始碼中寫了非ASCII 字元串,必須在第一行放置編碼聲明(encoding declaration)。 ... with open('text.txt', 'r') as f: b_str = f.read() print ...
確定! 回上一頁