摘要: type() 函数获取变量的类型: >>> type(123)<class 'int'> dir() 函数获取变量的所有属性: >>> dir(123)['__abs__', '__add__', '__and__', '__bool__', '__ceil__', '__class__', '__ 阅读全文
posted @ 2018-11-29 16:42 leo_队长 阅读(1734) 评论(0) 推荐(0) 编辑