9 月 152020
已使用函数的简单总结
print()
print是一个放入对象就能将结果打印的函数
input()
input是一个可以让用户输入信息的函数
len()
len是一个可以测量对象长度的函数
int()
int是一个可以将字符串类型的数字转换成整数类型的函数
Python 3.8内建函数列表
https://docs.python.org/3/library/functions.html
+---------------+-------------+--------------+--------------+----------------+
| abs() | delattr() | hash() | memoryview() | set() |
+---------------+-------------+--------------+--------------+----------------+
| all() | dict() | help() | min() | setattr() |
+---------------+-------------+--------------+--------------+----------------+
| any() | dir() | hex() | next() | slice() |
+---------------+-------------+--------------+--------------+----------------+
| ascii() | divmod() | id() | object() | sorted() |
+---------------+-------------+--------------+--------------+----------------+
| bin() | enumerate() | input() | oct() | staticmethod() |
+---------------+-------------+--------------+--------------+----------------+
| bool() | eval() | int() | open() | str() |
+---------------+-------------+--------------+--------------+----------------+
| breakpoint() | 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() | |
+---------------+-------------+--------------+--------------+----------------+