Python:random
摘要:
import random import string print( random.randint(1,10) ) # 产生 1 到 10 的一个整数型随机数 print( random.random() ) # 产生 0 到 1 之间的随机浮点数 print( random.uniform(1.1 阅读全文
posted @ 2021-10-29 11:00 小尹学python 阅读(42) 评论(0) 推荐(0)
浙公网安备 33010602011771号