检查字符串是否在列中不区分大小写

时间:2014-12-20 15:33:04

标签: python python-3.x

无论字符串列表中是否存在大小写,我如何检查字符串?

我有这个

current_activities = ['Free WiFi']

if activity in current_activities:
   print("Yes it is already inside")

我希望activity = 'Free WiFi'activity = 'Free WIFI'评估为真。

0 个答案:

没有答案