下列程序中哪个是生成1-100之间随机整数的:
8 查阅
下列程序中哪个是生成1-100之间随机整数的:
A.importrandomprint(random.randint(1,100))
B.importrandomprint(random.random(1,100))
C.importrandomprint(random.uniform(1,100))
D.importrandomprint(random.randrange(1,100,2))
参考答案: