【发布时间】:2019-09-09 14:31:40
【问题描述】:
我在表单中有一个字典项
{"value for money": ["rescheduled", "cost", "low", "high", "simplicity", "booking", "price-performance", "satisfied", "satisfaction", "pricing", "prices"]}
我需要检查“I love simple”之类的字符串是否包含这本词典中的任何单词。
不知道如何为此定义代码。
【问题讨论】:
-
基本
for循环可以解决这个问题,你能详细说明问题吗?
标签: python string dictionary