原文件名字top500
链接: 密码: bat5
中文名字链接: 密码: xj7n
全拼 比如:zhangwei
链接: 密码: t72p
姓全拼 名取首字母 比如:zhangw
链接: 密码: kdga
全部取首字母 比如:zw链接: 密码: 62j5
全部的下载链接 链接: 密码: b6r8 ================================================================
同时用python3写了个脚本 读取name.txt的中文名字
#!/usr/bin/env python# -*- conding:utf-8 -*- import refrom xpinyin import Pinyindef name(): mz=[] with open('name.txt','r') as f: for i in f.readlines(): #res=re.compile(r'[\u0391-\uFFE5]+') #匹配中文 #date = res.findall(i) mz.append(date) #print(date) return mzdef zhangwei(date): #zhangwei with open('zhangwei.txt', 'a') as f: p = Pinyin() for i in date: pinyin =p.get_pinyin(i[0]) res = re.compile(r'(\w)') pydate = res.findall(pinyin) for i in pydate: f.write(i) f.write('\n')def zhangw(date): #zhangw with open('zhangw.txt', 'a') as f: p = Pinyin() for i in date: pinyin = p.get_pinyin(i[0]) res = re.compile(r'(.*?)-(.).*?-(.)|(.*?)-(.)') pydate = res.findall(pinyin) for i in pydate[0]: f.write(i) print('\n') f.write("\n")def zw(date): #zw with open('zw.txt', 'a') as f: p = Pinyin() for i in date: pinyin = p.get_pinyin(i[0]) res = re.compile(r'(.).*?-(.).*?-(.)|(.).*?-(.)') pydate = res.findall(pinyin) for i in pydate[0]: f.write(i) print('\n') f.write("\n")date=name()zhangwei(date)zhangw(date)zw(date)