擅长:python、mysql、java
<p>你可以这样做:</p>
<pre><code>Keywords =(('Nike shoes',),('Adidas shoes',),('Levice Jeans',),('adidas jersey',))
out=[]
Chats = (('Nike shoes have an offer',),('They are at a discount',),
('Nike shoes are the best',),('They have other offers as well',),
('They have introduced new shoes which are awesome',))
for i in Keywords:
for j in i:
for k in Chats:
for l in k:
if j in l:
out.append(j)
out1=tuple(out)
print(out1)
</code></pre>
<p>这会给你和你需要的一样的输出</p>