Python isinstance 方法 判断 built-in types(内置类型)技巧
d = {}
isinstance(d, type({}))
isinstance(d, dict)
l = []
isinstance(l, type([]))
isinstance(l, list)
t = ()
isinstance(t, type(()))
isinstance(t, tuple)
2024-02-14 23:55:52
d = {}
isinstance(d, type({}))
isinstance(d, dict)
l = []
isinstance(l, type([]))
isinstance(l, list)
t = ()
isinstance(t, type(()))
isinstance(t, tuple)
下一篇:VIM一些常用命令,方法,配置