前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # github:https://github.com/tangthis def lazy_sum(*args): def sum(): ax = 0 for n in args: ax = ax + n return ax return sum f = lazy_sum(1,3,5,7,9) print(f) print(f())