1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
| >>> fake.name() # 生成姓名
'田鑫'
>>> fake.address() # 生成地址
'山东省阳市高坪吕路A座 998657'
>>> fake.country() # 国家
'意大利'
>>> fake.province() # 省份
'安徽省'
>>> fake.city() # 城市
'哈尔滨市'
>>> fake.district() # 区
'徐汇'
>>> fake.street_address() # 街道
'海门路I座'
>>> fake.random_int() # 随机数字,默认0~9999
2257
>>> fake.random_digit() # 0~9随机数
6
>>> fake.random_number() # 随机数字,参数digits设置生成的数字位数,返回random.randint(0, pow(10, digits) - 1)
3229
>>> fake.random_letter() # 随机字母
'Q'
>>> fake.random_lowercase_letter() # 随机小写字母
'z'
>>> fake.random_uppercase_letter() # 随机大写字母
'V'
>>> fake.color_name() # 颜色名
'GoldenRod'
>>> fake.color_name()
'Chartreuse'
>>> fake.color_name()
'DeepPink'
>>> fake.color_name()
'MediumSpringGreen'
>>> fake.company() # 随机公司名
'联通时科网络有限公司'
>>> fake.bs() # 随机公司服务名
'mesh bleeding-edge infrastructures'
>>> fake.company_suffix() # 随机公司性质
'信息有限公司'
>>> fake.credit_card_number() # 信用卡号
'4803099375057291529'
>>> fake.credit_card_provider() # 信用卡类型
'VISA 19 digit'
>>> fake.currency_code() # 货币代码
'EUR'
>>> fake.am_pm() # AM/PM
'AM'
>>> fake.date() # 日期
'1974-08-12'
>>> fake.date_this_year() # 今年的随机日期
datetime.date(2018, 5, 6)
>>> fake.date_this_month() # 这个月的随机日期
datetime.date(2018, 11, 17)
>>> fake.month() # 随机月份数字
'09'
>>> fake.month_name() # 随机月份名称
'July'
>>> fake.date_time_this_year() # 今年的某个时间
datetime.datetime(2018, 7, 21, 7, 43, 58)
>>> fake.date_time() # 随机时间
datetime.datetime(2007, 9, 13, 14, 15, 54)
>>> fake.time() # 随机24小时时间,time对象
'23:28:47'
>>> fake.file_name() # 文件名
'更新.html'
>>> fake.file_path() # 文件路径
'/的话/系列.docx'
>>> fake.file_extension() # 文件扩展
'xlsx'
>>> fake.mime_type() # 随机mime类型
'video/ogg'
>>> fake.ascii_company_email() # 随机公司邮箱
'guiying74@xiajun.net'
>>> fake.ascii_email() # 随机邮箱
'tangyan@gmail.com'
>>> fake.ipv4() # 随机IP4地址
'126.162.176.179'
>>> fake.ipv6() # 随机IP6地址
'9be4:c8c9:f589:f14b:24e6:2425:88c:bef9'
>>> fake.mac_address() # 随机MAC地址
'7e:51:97:aa:8b:a1'
>>> fake.url() # 随机URI地址
'http://luo.cn/'
>>> fake.job() # 随机职位
'网络工程师'
>>> fake.paragraph() # 段落
'准备帮助标题论坛.朋友开始类型网上这种.日本其他然后城市.'
>>> fake.sentence() # 随机一句话
'产品应用操作详细.'
>>> fake.word() # 单词
'参加'
>>> fake.boolean() # 随机布尔值
False
>>> fake.phone_number() # 随机手机号
'18071087230'
>>> fake.profile() # 随机档案
{'job': '银行柜员', 'company': '四通科技有限公司', 'ssn': '220200194905157548', 'residence': '山西省长沙市城东童街R座 486365', 'current_location': (Decimal('61.941104'), Decimal('-177.651444')), 'blood_group': 'A+', 'website': ['https://gong.cn/', 'https://www.xiuyingna.org/', 'http://xp.cn/', 'http://www.wei.org/'], 'username': 'wei07', 'name': '廉雪梅', 'sex': 'F', 'address': '山西省金凤市上街公路M座 409920', 'mail': 'taotian@gmail.com', 'birthdate': datetime.date(1911, 12, 12)}
>>> fake.ssn() # 身份证号
'510726199311249157'
>>> fake.firefox() # 随机生成FireFox的浏览器user_agent信息
'Mozilla/5.0 (X11; Linux x86_64; rv:1.9.6.20) Gecko/2013-12-19 08:38:18 Firefox/13.0'
>>> fake.user_agent() # 随机user_agent信息
'Mozilla/5.0 (iPod; U; CPU iPhone OS 4_1 like Mac OS X; ca-AD) AppleWebKit/531.14.4 (KHTML, like Gecko) Version/3.0.5 Mobile/8B113 Safari/6531.14.4'
|