📜  检查数据类型 python 代码示例

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

代码示例1
a = 123
 
b = 'Hello'
 
print('Is a an instance of str?', isinstance(a, str))
print('Is b an instance of str?', isinstance(b, str))