摘要: 1 int(x [,base ]) 将x转换为一个整数 2 long(x [,base ]) 将x转换为一个长整数 3 float(x ) 将x转换到一个浮点数 4 complex(real [,imag ]) 创建一个复数 5 str(x ) 将对象 x 转换为字符串 6 repr(x ) 将对象 x 转换为表达式字符串 7 eval(str ) 用来计算在字符串中的有效Python表达式,并返 阅读全文
posted @ 2019-11-08 16:37 Ring_1992 阅读(381) 评论(0) 推荐(0) 编辑