下列程序中哪个是生成1-100之间随机整数的:
下列程序中哪个是生成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))
正确答案:importrandomprint(random.randint(1,100))
Tag:Python及其应用 整数 程序
时间:2022-01-29 21:09:46