跳至主要內容
02-初识数据类型 Notebook
img

1. 数字型【int、float】

a = 1
print(type(a))

a = 1.0
print(type(a))

# type: 类型
# class: 班级、类别、类型

AI悦创原创...大约 3 分钟Python Base NotebookPython Base Notebook