使用type()函数查看数据类型 2.1

Python
a = 10
b = 3.14
print(type(a))  # 输出:<class 'int'>
print(type(b))  # 输出:<class 'float'>

您可能还喜欢...

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注