我想让这个函数给我大约10个值分成2个列表,但它只给我1个值。为什么呢?
import random
def chance():
count = 0
while count < 10:
list11 = []
list22 = []
num = random.randint(1,11)
if num > 6:
list11.append(num)
elif num < 6:
list22.append(num)
count += 1
print list11
print list22
机会()