我想编写一个模拟掷骰子 100 次的程序,但我该怎么做呢?这是代码:
import random
def roll() :
print('The computer will now simulate the roll of a dice 100 times')
number = random.randint(1,6)
print([number])
roll()
我想编写一个模拟掷骰子 100 次的程序,但我该怎么做呢?这是代码:
import random
def roll() :
print('The computer will now simulate the roll of a dice 100 times')
number = random.randint(1,6)
print([number])
roll()