If you want to find items that contain name
, try this:
def find_contacts(contacts = [['Bruno Jr', '@brunojr'], ['Brunosvaldo Kean', 'brunosvaldo_kean']], name = 'Bruno'):
for list in contacts:
for item in list:
if name in item:
print(name)
find_contacts()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…