Capability library
每个功能,一个中文代码页面。
从 Python 内置能力到 Flask、数据库、AI、工业控制和动态库。搜索名称、签名或业务场景,打开页面即可复制运行。
当前找到 467 项
181Python · 基础 / Python 内置时间戳
()↗182Python · 基础 / Python 内置时间戳转日期(时间戳)↗183Python · 基础 / Python 内置日期转时间戳(日期)↗184Python · 基础 / Python 内置性能计数器()↗185Python · 基础 / Python 内置进程时间()↗186Python · 基础 / Python 内置ISO格式解析(文本: 'str') -> 'datetime.datetime'↗187Python · 基础 / Python 内置ISO格式输出(日期对象) -> 'str'↗188Python · 基础 / Python 内置日期范围(开始日期, 结束日期, 步长: 'int' = 1)↗189Python · 基础 / Python 内置计数器(可迭代对象=None, **选项) -> 'collections.Counter'↗190Python · 基础 / Python 内置默认字典(默认工厂, **选项) -> 'collections.defaultdict'↗191Python · 基础 / Python 内置有序字典(映射=None, **选项) -> 'OrderedDict'↗192Python · 基础 / Python 内置双端队列(可迭代对象=None, 最大长度=None) -> 'collections.deque'↗193Python · 基础 / Python 内置命名元组(名称: 'str', 字段列表)↗194Python · 基础 / Python 内置链式映射(*映射) -> 'collections.ChainMap'↗195Python · 基础 / Python 内置用户字典(**选项)↗196Python · 基础 / Python 内置用户列表(可迭代对象=None)↗197Python · 基础 / Python 内置用户字符串(文本: 'str' = '')↗198Python · 基础 / Python 内置积(*可迭代对象, 重复: 'int' = 1)↗199Python · 基础 / Python 内置排列(可迭代对象, 长度: 'int | None' = None)↗200Python · 基础 / Python 内置组合(可迭代对象, 长度: 'int')↗201Python · 基础 / Python 内置可重复组合(可迭代对象, 长度: 'int')↗202Python · 基础 / Python 内置链(*可迭代对象)↗203Python · 基础 / Python 内置链从可迭代(可迭代对象)↗204Python · 基础 / Python 内置循环(可迭代对象, 次数=None)↗205Python · 基础 / Python 内置重复(值, 次数: 'int | None' = None)↗206Python · 基础 / Python 内置切片迭代(可迭代对象, 起始, 结束=None, 步长: 'int' = 1)↗207Python · 基础 / Python 内置计数(起始: 'int' = 0, 步长: 'int' = 1)↗208Python · 基础 / Python 内置分组(可迭代对象, 键函数=None)↗209Python · 基础 / Python 内置累积(可迭代对象, 操作=<built-in function add>, 包含初始: 'bool' = False)↗210Python · 基础 / Python 内置满足条件时取(谓词, 可迭代对象)↗