Cloudflare 中文文档
Workers
Workers
编辑这个页面
跳转官方原文档
Set theme to dark (⇧+D)

Examples

Cloudflare has a wide range of Python examples in the Workers Example gallery.

In addition to those examples, consider the following ones that illustrate Python-specific behavior.

​​ Parse an incoming request URL

​​ Parse JSON from the incoming request

​​ Emit logs from your Python Worker

​​ Publish to a Queue

​​ Query a D1 Database

Refer to Query D1 from Python Workers for a more in-depth tutorial that covers how to create a new D1 database and configure bindings to D1.

​​ Next steps