由此程式碼可知for loop 的index 與全域中的index 不同,若要使index起始為 ... index = 2 # python 默認 index 為全域變數 while index < 10: index ...
確定! 回上一頁