标签: python python-3.x
如果我错了,请纠正我:
a = "Disabled" if a == "Disabled" and "Disable": print('True') else: print('False') if a is "Disabled" or "Disable"
答案 0 :(得分:0)
你想写的是
if a == "Disabled" or a == "Disable":
其他选项是
if a in ("Disabled", "Disable):