python生成随机数据模块Faker

官方文档:https://faker.readthedocs.io/en/master/index.html

faker用途

用来生成一些随机数据

安装

pip install Faker

使用
在这里插入图片描述
以上是我举例了几个比较常用的数据,如果需要用到更多,可以通过dir方法查看在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44102466/article/details/108303360