天问 29f88d0668 Update 'README.md' | 8 months ago | |
---|---|---|
README.md | 8 months ago |
生成一些表单字段数据,如用户名,邮箱,url,头像等
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()