獲取陣列長度 a = [1, 2, 3] size = len(a) print(size) # 8. 遍歷陣列 # 0(n) # 8.1 for i in a # 不需要索引 for i in a: print(i) # 8.2 enumerate ...
確定! 回上一頁