用python写一个1-10的随机数程序
以下是用Python编写的生成1-10的随机数程序:
import random
num = random.randint(1, 10)
print(num)
运行结果:
6
原文地址: https://www.cveoy.top/t/topic/dhrt 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
以下是用Python编写的生成1-10的随机数程序:
import random
num = random.randint(1, 10)
print(num)
运行结果:
6
原文地址: https://www.cveoy.top/t/topic/dhrt 著作权归作者所有。请勿转载和采集!