![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Pyhon学习笔记
星哥哥想有钱
不断学习,超越自己
展开
-
python json.load()和json.loads()的区别
python json数据解码原创 2022-06-02 15:24:06 · 239 阅读 · 0 评论 -
Python随机数生成方法
使用前需先导入random包 1.随机整数 random.randint(0,100) 2.随机取0到100间的偶数 random.randrange(0, 99, 2) 3.随机浮点数 random.random() random.uniform(1, 10) 4.随机字符: random.choice('abcdefg&#%^*f') 5.多个字符中选取特定数量的原创 2022-11-08 17:48:34 · 639 阅读 · 1 评论