py002

py数字
*int
*float
*complex
实例:

x=10  #int
y=8.0  #folat
z=2j  #complex

验证py中对象类型 使用type()函数 实例:

print(type(x))
print(type(y)
上一篇:16.7 其他库


下一篇:PTA 7-8 复数相加