index = 2 for index in range(10): global index print("global:") ... index = 2 # python 默認 index 為全域變數 while index < 10: index = index ...
確定! 回上一頁