【发布时间】:2021-05-30 13:36:45
【问题描述】:
我有一个看起来有点像这样的元组列表
global_list = [('Joe','Smith'),('Singh','Gurpreet'),('Dee','Johnson'),('Ahmad','Iqbal')..........]
我想在 global_list of
中查找 索引位置- 其中包含“John”的元组
- 元组中包含“Richard”或“Thomas”或“Khan”
元组可以是 ('First Name','Last Name') 或 ('Last Name','First Name')。
提前致谢
【问题讨论】: