import random
n = random.randint(1,100)
if (n % 2 != 0):
print("Weird")
elif (n % 2 == 0 and n in range(2,5)):
print("Not Weird")
elif (n % 2 == 0 and n in range(6,20)):
print("Weird")
elif (n % 2 == 0 and n > 20):
print("Not Weird")
这段代码有问题吗?
Cats萌萌
富国沪深
相关分类