📜  in 运算符用于搜索大小写词. In 区分大小写 - 无论代码示例
📅  最后修改于: 2022-03-11 14:56:52.002000             🧑  作者: Mango
代码示例1
username = 'MICHAEL89'
if username.upper() in (name.upper() for name in USERNAMES):
...