也就是直接拿個變數當index 來操作,在Python 中如果需要用到index 的話,可使用內建函式 enumerate. 慣用. names = ['Alice', 'Bob', 'Cindy'] for index, ...
確定! 回上一頁