RSS
热门关键字:  java  Ajax  JSP  JSF  Struts
当前位置 : 首页>Python>列表

python写的随机生成身份证号码的函数

来源: 作者: 时间:2007-09-19 点击:
, '6', '5', '4', '3', '2')

def makeNew():
    u''' 随机生成新的18为身份证号码 '''
    t = time.localtime()[0]
    x = '%02d%02d%02d%04d%02d%02d%03d' %(random.randint(10,99),
                                        random.randint(01,99),
                                        random.randint(01,99),
                                        random.randint(t - 80, t - 18),
                                        random.randint(

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册
Google Adsense
相关文章