Welcome to Faker’s documentation! — Faker 30.3.0 documentation Version1: Example from docs: from faker import Faker from faker.providers import internet for i in range(2): #批量生成数据 fake = Faker() name = fake.name() address = fake.address() text = fake.text() fake.add_provider(internet) ip = fake.ipv4_private() print("the {}th data yields by faker".format(i+1)) print("name: {},\naddress: {},\ntext: {},\n{}".format(name, address, text,ip))
result: