Browse Source

Update 'README.md'

天问 1 year ago
parent
commit
29f88d0668
1 changed files with 22 additions and 0 deletions
  1. 22 0
      README.md

+ 22 - 0
README.md

@@ -1,2 +1,24 @@
 # 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()
+
+
+
+
+```