python产生随机名字

时间:2021-09-09 05:59:06
# encoding: utf-8
import random
as r

a1
=['','','','','']

a2
=['','','','','','']

a3
=['','','','','','']

for i in range(15):
name
=r.choice(a1)+r.choice(a2)+r.choice(a3)
print(name)

python产生随机名字

http://www.cnblogs.com/jmlovepython/p/7388632.html

对于需要中文名字的  先可以从网站爬取,存入数据库,然后lr做参数化