2
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

めざせpythonライブラリマスター (58)faker

Last updated at Posted at 2016-06-15

#【ライブラリ説明】
 名前や住所、テキストなどのフェイクデータを作成できる
 英語のみならず、様々な言語対応

#【プログラム】

faker.py
# -*- coding: utf-8 -*-

from faker import Factory

fake = Factory.create()

print fake.name()
# Greggory King

print fake.address()
'''
12448 Thea Street
North Lovettton, KY 22164-6982
'''

print fake.text()
'''
Ratione consequatur alias natus dolores assumenda facere tempore.
Consectetur voluptatum perspiciatis omnis tempore ea ipsum.
Fugit blanditiis minima doloribus placeat sequi.
'''

#【参考サイト】
 github

2
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?