Capability library

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

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

当前找到 66
第 2 / 3 页点击功能查看完整中文案例、参数备注和错误排查
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')048FastAPI · FastAPI API 开发统一响应(数据=None, 消息: 'str' = '成功', 状态码: 'int' = 200, 错误: 'str' = None)049FastAPI · FastAPI API 开发文件上传(应用, 路径: 'str', 上传目录: 'str' = 'uploads', 允许扩展名=None)050FastAPI · FastAPI API 开发查询参数(名称: 'str', 类型=<class 'str'>, 默认=None, 描述: 'str' = '', **选项)051FastAPI · FastAPI API 开发路径参数(名称: 'str', 类型=<class 'str'>, 默认=Ellipsis, 描述: 'str' = '', **选项)052FastAPI · FastAPI API 开发依赖注入(函数)053FastAPI · FastAPI API 开发响应模型(模型类, 状态码: 'int' = 200, 描述: 'str' = '')054FastAPI · FastAPI API 开发错误响应模型(状态码: 'int', 描述: 'str', 模型类=None)055FastAPI · FastAPI API 开发添加后台任务(后台任务对象, 函数, *参数, **选项)056FastAPI · FastAPI API 开发后台任务路由(应用, 路径: 'str', 方法: 'str' = 'POST')057FastAPI · FastAPI API 开发流式响应(生成器函数, 媒体类型: 'str' = 'text/event-stream')058SFastAPI · FastAPI API 开发SSE推送(应用, 路径: 'str')059WFastAPI · FastAPI API 开发WebSocket管理器()060FastAPI · FastAPI API 开发启动事件(应用, 处理函数)