py点滴yan
number
int long float complex
10 51924361L 0.0 3.14j
100 -0x19323L 15.20 45.j
----Python Number 类型转换
int(x [,base ]) 将x转换为一个整数
long(x [,base ]) 将x转换为一个长整数
float(x ) 将x转换到一个浮点数
complex(real [,imag ]) 创建一个复数
str(x )
原创
2021-10-11 09:24:24 ·
96 阅读 ·
0 评论