magicians=['bob','alice','peter']
for magician in magicians:
print(magician)
我的問題是:為什么Python會自動的“依次”獲取串列中的元素,且遍歷串列后自動停止。而不是只讀取串列中的第一個元素且永不停止。
什么決定了Python的這種行為?
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/202659.html
標籤:Java相關
上一篇:請教下2019idea這個咋關掉
下一篇:求助!!Spring boot 的 RestTemplate把Response物件被轉成LinkedHashMap
