- 博客(1)
- 资源 (2)
- 收藏
- 关注
转载 python各种类型转换-int,str,char,float,ord,hex,oct等
int(x [,base ]) 将x转换为一个整数 long(x [,base ]) 将x转换为一个长整数 float(x ) 将x转换到一个浮点数 complex(real [,imag ]) 创建一个复数 str(x ) 将对象 x 转换为字符串 repr(x )
2014-12-09 01:27:32 836
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人