Python2.x 1. 默認編碼為 ASCII 2. 顯式聲明編碼類型為‘UTF-8’ # Add the below declaration to 1st line or 2nd line of source file #-*- coding: utf-8 -*- 3. Defining Python Source Code Encodings Python3.x Using UTF-8 as the default source encoding