README.md 277 B

faker

生成一些表单字段数据,如用户名,邮箱,url,头像等

Usage

pip install faker

from faker import Faker

fake = Faker(locale="zh_CN")

name=fake.word()
desc=fake.sentence()
decs2 = fake.text(2000)
fake.email()
fake.name()
fake.url()