1.4 python 类型转换函数
摘要:函数 描述 int(x [,base]) 将X转换为一个整数 float(x) 将x转换为一个浮点数 complex(real [,imag]) 创建一个复数 str(x) 将对象x转换为字符串 repr(x) 将对象x转换为表达式字符串 eval(str) 用例计算在字符串中的有效python表达
阅读全文
posted @ 2019-09-05 15:58
posted @ 2019-09-05 15:58
posted @ 2019-09-05 14:27
posted @ 2019-09-05 14:17
posted @ 2019-09-05 11:00