How to efficiently search for a list of strings in another list of strings using Python?
问题 I have two list of names (strings) that look like this: executives = ['Brian Olsavsky', 'Some Guy', 'Some Lady'] analysts = ['Justin Post', 'Some Dude', 'Some Chick'] I need to find where those names occur in a list of strings that looks like this: str = ['Justin Post - Bank of America', "Great. Thank you for taking my question. I guess the big one is the deceleration in unit growth or online stores.", "I know it's a tough 3Q comp, but could you comment a little bit about that?", 'Brian