📌  相关文章
📜  python 在列表中第一次出现 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:41.057000             🧑  作者: Mango

代码示例2
#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