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语句)
杨魅力
梵蒂冈之花
跃然一笑
紫衣仙女
随时随地看视频慕课网APP
相关分类