项目地址:https://github.com/joke2k/faker
安装方法:
pip install Faker
基本用法:
from faker import Faker
fake = Faker(locale='zh_CN')
name = fake.name()
address = fake.address()
print(name)
print(address)
# 输出信息
张艳
海南省上海市朝阳邱路y座 175208
项目地址:https://github.com/joke2k/faker
安装方法:
pip install Faker
基本用法:
from faker import Faker
fake = Faker(locale='zh_CN')
name = fake.name()
address = fake.address()
print(name)
print(address)
# 输出信息
张艳
海南省上海市朝阳邱路y座 175208