因此,假设我在玩Go Fish (这完全是我正在编写的代码),我想检查是否有一个函数对。有很多蛮力的方法可以做,但我认为可能的方式,我不确定如何执行是测试同一子字符串的多次出现。['Ace of Spades', 'Nine of Diamonds', 'Ace of Diamonds']
现在,我尝试使用if Player_hand.find('Ace'
我有一个包含对象子列表的列表,如下所示 [[Instance of 'messageIdModel', Instance of 'messageIdModel'], [Instance of 'messageIdModel, [Instance of 'messageIdModel', Instance of 'messageIdModel'], [Instance of 'messageIdModel']] 现在