发布于 2017年11月2日 python内置方法 Python解释器有许多内置的功能和类型,始终可用。他们按字母顺序列在这里。 内置功能 abs() dict() help() min() setattr() all() dir() hex() next() slice() any() divmod() id() object() sorted() ascii() enumerate() input() oct() staticmethod() bin() eval() int() open() str() bool() exec() isinstance() ord() sum() bytearray() filter() issubclass() pow() super() bytes() float() iter() print() tuple() callable() format() len() property() type() chr() frozenset() list() range() vars() classmethod() getattr() locals() repr() zip() compile() globals() map() reversed() __import__() complex() hasattr() max() round() delattr() hash() memoryview() set() 内置参数详解 https://docs.python.org/3/library/functions.html?highlight=built#ascii 相关