Python: and operator doesn't seem to work in while loop

前端 未结 0 1708
长发绾君心
长发绾君心 2021-01-06 07:29

I have code like this

from random import randint
def rand(p):
    a = randint(0, p)
    b = randint(0, p)
    while (a != 501) and (b != 370):
        a = ran         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题