Ai
4 Star 10 Fork 0

Gitee 极速下载/RustPython

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/RustPython/RustPython
克隆/下载
demo_closures.py 115 Bytes
一键复制 编辑 原始数据 按行查看 历史
Rex Ledesma 提交于 2025-05-08 12:37 +08:00 . chore: rely on the default inclusions for ruff
def foo(x):
def bar(z):
return z + x
return bar
f = foo(9)
g = foo(10)
print(f(2))
print(g(2))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/mirrors/RustPython.git
git@gitee.com:mirrors/RustPython.git
mirrors
RustPython
RustPython
main

搜索帮助