可以在程式碼中的任何位置訪問全域性變數,僅在本地作用域可以訪問的是本地變數 ... global z return x+y+z func1() total = func2(4,5) print(total).
確定! 回上一頁