| 函數 | 描述 |
| ------------------------------------------------------------ | --------------------------------------------------- |
| int(x [,base\])[](http://www.runoob.com/python3/python-func-int.html) | 將x轉換為一個整數 |
| [float(x)](http://www.runoob.com/python3/python-func-float.html) | 將x轉換到一個浮點數 |
| complex(real [,imag])| 創建一個復數 |
| [str(x)](http://www.runoob.com/python3/python-func-str.html) | 將對象 x 轉換為字符串 |
| [repr(x)](http://www.runoob.com/python3/python-func-repr.html) | 將對象 x 轉換為表達式字符串 |
| [eval(str)](http://www.runoob.com/python3/python-func-eval.html) | 用來計算在字符串中的有效Python表達式,并返回一個對象 |
| [tuple(s)](http://www.runoob.com/python3/python3-func-tuple.html) | 將序列 s 轉換為一個元組 |
| [list(s)](http://www.runoob.com/python3/python3-att-list-list.html) | 將序列 s 轉換為一個列表 |
| [set(s)](http://www.runoob.com/python3/python-func-set.html) | 轉換為可變集合 |
| [dict(d)](http://www.runoob.com/python3/python-func-dict.html) | 創建一個字典。d 必須是一個序列 (key,value)元組。 |
| [frozenset(s)](http://www.runoob.com/python3/python-func-frozenset.html) | 轉換為不可變集合 |
| [chr(x)](http://www.runoob.com/python3/python-func-chr.html) | 將一個整數轉換為一個字符 |
| [ord(x)](http://www.runoob.com/python3/python-func-ord.html) | 將一個字符轉換為它的整數值 |
| [hex(x)](http://www.runoob.com/python3/python-func-hex.html) | 將一個整數轉換為一個十六進制字符串 |
| [oct(x)](http://www.runoob.com/python3/python-func-oct.html) | 將一個整數轉換為一個八進制字符串 |