python 输出变量类型

作者: python 发布时间: 2022-10-16 浏览: 676 次 编辑

python 输出变量类型

a = 10
print(type(a))   #int整形,str字符串
#强制类型转换
a = str("123")
print(type(a))