类型转换 常用的数据类型转换: 类型转换操作 说明 int(x [base ]) 将x转换为一个整数 float(x ) 将x转换为一个浮点数 str(x ) 将对象 x 转换为字符串 eval(str )