StructPageNum = namedtuple('FDResult', ['DeviceID', 'PageNum'])
PageNumList = []
Node = StructPageNum(DeviceID='NR0951113', PageNum=[1,2,3,4])
PageNumList.append(Node)
Node = StructPageNum(DeviceID='NR0951114', PageNum=[1,2,3,4])
PageNumList.append(Node)
print('NR0951113' in PageNumList[:].DeviceID)
1)如何在PageNumList中搜索NR0951113?
已编辑
2)如果我想获得 NR0951113 数组索引?如何获得它?