标签: 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'评估为真。
activity = 'Free WiFi'
activity = 'Free WIFI'