标识 | id() | 返回对象的唯一标识,CPyth返回内存地址 |
哈希 | hash() | 返回一个对象的哈希值 |
类型 | type() | 返回对象的类型 |
类型转换 | float() int() bin() oct() bool() list() dict() tuple() set() complex() bytes() bytearry() |
|
输入 | input() | 接收用户输入,返回一个字符串 |
打印 | print(*objects,sep='',end='\n', file=sys.stdout, flush=False |
打印输出,默认使用空格分隔、换行结尾,输出到控制台 |
对象长度 | le() | 返回一个集合类型的元素个数 |
isinstance(obj,class_or_tuple) | 判断对象obj是否属于某种类型或者元祖中列出的某个类型 isinstance(True,int) |
|
issubclass(cls,cl |
Python 内建函数
最新推荐文章于 2023-03-03 08:54:33 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)