len()函數-讀取陣列資料共幾筆
Member_id = ["MBA", "MBB", "MBC","MBD"]
print(Member_id)
print(len(Member_id))#4筆資料
使用for in range方式讀取陣列
Member_id = ["MBA", "MBB", "MBC","MBD"]
print(len(Member_id))#4筆資料
for ss in range(len(Member_id)):
print(Member_id[ss])
Yiru@Studio - 關於我 - 意如