python(7) random

import random import itertools outcomes = {'heads': 0, 'tails': 0} sides = outcomes.keys() a = [] for i in sides: a.append(i) for i in range(10000): outcomes[random.choice(a)] += 1 print(o
相關文章
相關標籤/搜索