📅  最后修改于: 2022-03-11 14:46:41.057000             🧑  作者: Mango
#iterate through list
for item in yourlist:
#if item is equal to a value
if item == 'value':
#store the item in a variable
yourvar = item
#break out of loop
break