diff --git a/python2/Type_conversion.md b/python2/Type_conversion.md index d49b180..fd652eb 100644 --- a/python2/Type_conversion.md +++ b/python2/Type_conversion.md @@ -3,7 +3,6 @@ |方法|说明| |-----|------| |int(x [,base ]) | 将x转换为一个整数 | -|long(x [,base ])| 将x转换为一个长整数 | |float(x ) | 将x转换到一个浮点数 | |complex(real [,imag ])| 创建一个复数 | |str(x ) | 将对象 x 转换为字符串 | @@ -15,4 +14,6 @@ |unichr(x ) | 将一个整数转换为 Unicode 字符 | |ord(x ) | 将一个字符转换为它的整数值 | |hex(x ) | 将一个整数转换为一个十六进制字符串 | -|oct(x ) | 将一个整数转换为一个八进制字符串 | \ No newline at end of file +|oct(x ) | 将一个整数转换为一个八进制字符串 | + +注:在 Python 3 里,只有一种整数类型 int,表示为长整型,没有 python2 中的 Long。