2020年3月17日

Python数据类型转

摘要: int(x [,base] ) 将x转换为一个整数 long(x [,base ] ) 将x转换为一个长整数 float(x ) 将x转换到-一个浮点数 complex(real [,imag ] ) 创建一个复数 str(x ) 将对象x转换为字符串 repr(x ) 将对象x转换为表达式字符串 阅读全文

posted @ 2020-03-17 16:36 pooopun 阅读(107) 评论(0) 推荐(0)

导航