中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

Python repr() 函數

Python 內置函數 Python 內置函數


描述

repr() 函數將對象轉化為供解釋器讀取的形式。

語法

以下是 repr() 方法的語法:

repr(object)

參數

  • object -- 對象。

返回值

返回一個對象的 string 格式。


實例

以下展示了使用 repr() 方法的實例:

>>>s = 'JSON' >>> repr(s) "'JSON'" >>> dict = {'json': 'json.cn', 'google': 'google.com'}; >>> repr(dict) "{'google': 'google.com', 'json': 'json.cn'}" >>>

Python 內置函數 Python 內置函數

其他擴展