python类型检查

类型检查

type函数:将检查结果以返回值表示,对括号内的内容进行检查

a = 'abc'
print(a)
c = type(a)
print(c)

#
print(type(True))
posted @ 2021-09-14 11:53  骑着蜗牛路过你的风景  阅读(129)  评论(0编辑  收藏  举报