mylist = [{'a':1,'b':2},{'a':3,'b':'10'},.....]
I want to do some special operations for the last itemin loop (iterarale), what to do?
for item in mylist:
do some operations for all items
#I want to execute the next statement only for last item
last_b = item[b]
last_b
什麼是做到這一點(用了一個if語句)的最佳方法做額外的工作,爲最後一次迭代
我的清單排序了一個 – Jisson