标签:数字类型 字符 浮点数 使用 log 常用 float images python
int
使用int()转换22.2,得到结果为 22
float
尽可能将字符串或者数字 转化为浮点数类型。
chr(x) 将数字类型转换为字符串类型
ord(x) 将字符串类型转换为数字类型
Python中常用的数据类型转换
原文地址:http://www.cnblogs.com/PythonInMyLife/p/6919061.html