📜  在python代码示例中为数值指定了多少数据类型

📅  最后修改于: 2022-03-11 14:45:26.602000             🧑  作者: Mango

代码示例1
There are three numeric types in Python:

1) int
2) float
3) complex

#for example 
x = 1    # int
y = 2.8  # float
z = 1j   # complex
print(type(x))
print(type(y))
print(type(z))