我有一个标题列表,其中有电竞队的名字。我需要在一个单独的列中提取它们。如果标题有相同的 "掩码",那就很容易了,但它们是不同的。
我在想,如果我有一个所有球队的列表,是否有办法从标题中提取球队名称。比如编写一段代码,循环浏览每一行,如果发现有球队,就在新的一列中复制球队名称。
团队名单。
teams = ['IG.V', 'Matador', 'Galaxy Racer', 'MG.Trust', 'Five brothers', 'Team Rocket', 'Cobra Gaming', 'Revenge Gaming', 'Secret', 'Virtus.pro']
Expected result
[RU] Galaxy Racer 0:0 MG.Trust (BO3) Moon Studio Carnival Cup @Mantis
Galaxy Racer
MG.Trust
[RU/EN] Five brothers - Team Rockets Asian Gold Occupation S19
Five Brothers
Team Rocket
[RU/EN] Cobra Gaming - Revenge Gaming Masters Tournament S13
Cobra Gaming
Revenge gaming
LF พากย์ Secret⚔️Virtus.pro (Bo3)🏆EPIC League: Division 1 - รอบแบ่งกลุ่ม
Secret
Virtus.pro