random.randint
takes two arguments from you, the third is a self
. If you want to apply a step param, you might want a random.choice
from a range
:
import random
random.choice(range(10, 100, 10))
90
Where range
allows for (start, stop, step)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…