Python 3 教程
Python 內置函數
repr() 函數將對象轉化為供解釋器讀取的形式。
以下是 repr() 方法的語法:
repr(object)
返回一個對象的 string 格式。
以下展示了使用 repr() 方法的實例: