8-[函數]-嵌套函數,匿名函數,高階函數

1.嵌套函數   (1)多層函數套用 name = "Alex" def change_name(): name = "Alex2" def change_name2(): name = "Alex3" print("第3層打印", name) change_name2() # 調用內層函數 print("第2層打印", na
相關文章
相關標籤/搜索