Why is ‘==‘ coming before ‘in’ in Python?
问题 The following code outputs False, when according to the Python Order of Operations it should output True (the order should be in -> ==, not the other way around). Why is == coming before in? y = "33" "3" in y == True Output False 回答1: The existing answers give helpful advice that you shouldn't compare booleans to True because it's redundant. However, none of the answers actually answer the root question: "why does "3" in y == True evaluate to False ?". That question was answered in a comment