函数嵌套与函数调用区别
摘要:
点击查看代码 # 函数嵌套 x = 10 def out(): x = 20 def inner(): print(x) return inner() def func(): print(x) def foo(): x = 20 func() if __name__ == '__main__': o 阅读全文
posted @ 2024-12-22 23:36 覃空万里 阅读(14) 评论(0) 推荐(0)
覃空万里
2024年12月22日 #
posted @ 2024-12-22 23:36 覃空万里 阅读(14) 评论(0) 推荐(0)