随笔分类 -  测试数据生成

python生成随机数、随机字符串
摘要:import random import string # 随机整数:包含头尾 print random.randint(1,50) # 随机选取0到100间的偶数: print random.randrange(0, 101, 2) # 随机浮点数: print random.random() [0,1) print random.uniform(1,... 阅读全文

posted @ 2020-05-28 16:09 katago 阅读(775) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示