Always true when testing if string == various OR'ed alternatives

前端 未结 5 1658
时光取名叫无心
时光取名叫无心 2020-11-30 14:57

So the problem I am currently having is that my program always calls the \'md5cypher\' class which I have defined, even if the input is not in that list:

def         


        
5条回答
  •  借酒劲吻你
    2020-11-30 15:33

    That is because checking a character will always return True therefore ensuring the if statement will execute.

提交回复
热议问题