Capability library

每个功能,一个中文代码页面。

从 Python 内置能力到 Flask、数据库、AI、工业控制和动态库。搜索名称、签名或业务场景,打开页面即可复制运行。

当前找到 3458
第 39 / 116 页点击功能查看完整中文案例、参数备注和错误排查
018FastAPI · FastAPI API 开发上传文件类()019WFastAPI · FastAPI API 开发WebSocket类()020FastAPI · FastAPI API 开发请求类()021FastAPI · FastAPI API 开发响应类()022FastAPI · FastAPI API 开发后台任务类()023FastAPI · FastAPI API 开发状态码()024FastAPI · FastAPI API 开发安全模块()025OFastAPI · FastAPI API 开发OAuth2密码承载(*参数, **选项)026JFastAPI · FastAPI API 开发JSON响应(*参数, **选项)027HFastAPI · FastAPI API 开发HTML响应(*参数, **选项)028FastAPI · FastAPI API 开发文本响应(*参数, **选项)029FastAPI · FastAPI API 开发获取(应用, 路径文本: 'str', **选项)030FastAPI · FastAPI API 开发提交(应用, 路径文本: 'str', **选项)031FastAPI · FastAPI API 开发放置(应用, 路径文本: 'str', **选项)032FastAPI · FastAPI API 开发删除(应用, 路径文本: 'str', **选项)033FastAPI · FastAPI API 开发补丁(应用, 路径文本: 'str', **选项)034WFastAPI · FastAPI API 开发WebSocket路由(应用, 路径文本: 'str', **选项)035FastAPI · FastAPI API 开发生命周期事件(应用, 事件名: 'str')036FastAPI · FastAPI API 开发测试客户端(应用, *参数, **选项)037FastAPI · FastAPI API 开发运行(应用, host: 'str' = '127.0.0.1', port: 'int' = 8000, **选项)038CFastAPI · FastAPI API 开发CORS中间件(应用, 允许来源=None, 允许方法=None, 允许头信息=None, 允许凭证: 'bool' = False, 最大缓存秒: 'int' = 600)039FastAPI · FastAPI API 开发简单认证(用户名: 'str', 密码: 'str')040FastAPI · FastAPI API 开发令牌认证(密钥: 'str' = 'secret', 令牌URL: 'str' = '/token')041FastAPI · FastAPI API 开发创建令牌(数据: 'dict', 密钥: 'str' = 'secret', 过期分钟: 'int' = 30)042FastAPI · FastAPI API 开发分页(查询参数名称: 'str' = 'page', 每页参数名称: 'str' = 'page_size', 默认每页: 'int' = 20, 最大每页: 'int' = 100)043FastAPI · FastAPI API 开发分页响应(数据列表, 总数: 'int', 页码: 'int', 每页: 'int')044FastAPI · FastAPI API 开发异常处理器(应用)045FastAPI · FastAPI API 开发健康检查路由(应用, 路径: 'str' = '/health')046FastAPI · FastAPI API 开发速率限制(最大请求: 'int' = 100, 时间窗口秒: 'int' = 60)047FastAPI · FastAPI API 开发静态文件服务(应用, 目录: 'str', 路径前缀: 'str' = '/static', 索引文件: 'str' = 'index.html')