Via Pyodide, Python Workers provide a Foreign Function Interface (FFI) to
JavaScript. This allows you to:
Use bindings to resources on Cloudflare, including Workers AI, Vectorize, R2,
KV, D1, Queues, Durable Objects, Service Bindings and more.
Use JavaScript globals, like Request, Response, and fetch().
Use the full feature set of Cloudflare Workers — if an API is accessible in
JavaScript, you can also access it in a Python Worker, writing exclusively
Python code.
The details of Pyodide’s Foreign Function Interface are documented here, and
Workers written in Python are able to take full advantage of this.
request、response、fetch三个最重要的东西都是js的
【 在 hgoldfish 的大作中提到: 】
: js 怎么冒充 python 呢?
--
FROM 139.227.19.*