精华内容
下载资源
问答
  • 爬虫简单一之获取酷狗top500名歌曲的名字,作者,排名,时间。并存入txt,csv,mysql。 准备使用环境为Python3.6+csv+time+requests+beautifulsoup+os+pymysql 环境说明 安装所要使用的库,使用库的说明 csv库来...

    爬虫简单一之获取酷狗top500名歌曲的名字,作者,排名,时间。并存入txt,csv,mysql。

    准备使用环境为Python3.6+csv+time+requests+beautifulsoup+os+pymysql

    环境说明 安装所要使用的库,使用库的说明

    • csv库来实现存储csv文件

    • time设置爬取间隔

    • request访问URL

    • beautifulsoup解析页面

    • os来创建文件夹来保存文件

    • pymysql来连接mysql数据库,把数据存储到mysql中

    1.准备URL

    打开https://www.kugou.com/yy/rank/home/1-8888.html?from=rank只能显示前22名
    在这里插入图片描述

    从图中看出的是只显示前22名,需要更多内容要下载客户端,但是通过改变1-8888.html中的数字1可以访问排行的前500名,一共需要24页。(他们后端可能并没有屏蔽其他的连接,仍然是可以访问的)

    2.使用beautifulsoup的selector来获取所需要的具体内容,如歌手,歌名,歌曲时间等信息。(下面提供了一个简单而快捷的方法)

    2.1右击要选取的元素内容,点击检查可以看到具体的源代码中的具体位置

    在这里插入图片描述

    在这里插入图片描述

    2.2再右击要选取的元素,选中copy会出现很多选项,常用的有copy selector和copy xpath,copy selector是使用beautifulsoup中的selector方法来选取元素时要使用的,而copy xpath是使用lxml库时使用xpath方法时使用的,使用这一个方法可以提高代码的生产效率。本文使用的是beautifulsoup的selector方法。在这里插入图片描述

    2.3下面是使用selector的具体代码(先使用beautiful soup来封装一下text再使用selector方法来选取。通过一下几行代码就可以把排名,名字,时间和歌手选取出来(歌手的名字和歌曲的名字在一个标签中使用-来分隔,选取出来之后可以使用split方法对字符串进行切分)。

    html = requests.get(url, headers=headers)
        soup = BeautifulSoup(html.text, 'lxml')
        ranks = soup.select('#rankWrap > div.pc_temp_songlist > ul > li > span.pc_temp_num')
        names = soup.select('#rankWrap > div.pc_temp_songlist > ul > li > a')
        times = soup.select('#rankWrap > div.pc_temp_songlist > ul > li > span.pc_temp_tips_r > span')
    

    源代码中的使用-连接的歌曲名个歌手名

    在这里插入图片描述

    分隔分别选出来的歌手名字和歌曲名字

    name = names[i].get_text().strip().split('-')[1]
            signer = names[i].get_text().strip().split('-')[0]
    

    3.当得到所有的信息之后,接下来就是要存储到文件当中,可以使用txt,csv,mysql等文件进行存储。

    3.1存储到txt中(在存储到txt文件中时,使用的当写入时,只能写入一个元素,所以要把所有元素使用+号来连接起来再使用f.write()来存储到txt中去)
    # 封装成函数
    def write_txt(message):
        with open('../tmp/_02_kugou/kuGou.txt', 'a+') as f:
            f.write(message + '\n')
    
    # 在进行调用时要使用加号把多个元素连接
    write_txt(rank + name + signer + time1)
    
    
    3.2存储到csv中首先open()函数打开当前路径下的名字为…/tmp/_02_kugou/kuGou.csv的文件,如果不存在这个文件,则创建它,返回f文件对象。csv.writer(f)返回writer对象csv_writer。writerow()方法是一行一行写入,writerows方法是一次写入多行。
    def write_csv(rank, name, signer, time1):
        with open('../tmp/_02_kugou/kuGou.csv', 'a+') as f:
            csv_writer = csv.writer(f)
            csv_writer.writerow([rank, name, signer, time1])
    
    3.3存储到mysql中,使用pymysql的connect方法传入多个参数之后连接数据库,创建一个游标,使用游标来执行sql语句,把获取到的值存储到数据库中。
    def writer_mysql(rank, name, signer, time1):
        con = pymysql.connect(user='root', password='root', db='spider', host='localhost', port=3306, charset='utf8')
        cursor = con.cursor()
        try:
            sql = '''INSERT INTO kugou(rank, name, signer, time) VALUES('%d', '%s', '%s', '%s')'''
            cursor.execute(sql % (int(rank), name, signer, pymysql.escape_string(time1)))
            con.commit()
        except pymysql.err.IntegrityError:
            pass
        cursor.close()
        con.close()
    
    注意在向mysql存储数据的时候出现 pymysql.err.ProgrammingError: 1064 (Python字符串转义问题)时

    使用模块MySQLdb自带的针对mysql的字符转义函数 escape_string把要存储的元素转义一下如

            cursor.execute(sql % (int(rank), name, signer, pymysql.escape_string(time1)))
    
    

    如果还是出现pymysql.err.ProgrammingError: 1064 错误就使用三引号’‘’ 来括取sql语句。应该就可以解决这个错误了

    sql = '''INSERT INTO kugou(rank, name, signer, time) VALUES('%d', '%s', '%s', '%s')'''
            cursor.execute(sql % (int(rank), name, signer, pymysql.escape_string(time1)))
    
    4.定义一个main函数,迭代所有的要爬取的URL链接,给爬虫函数传入链接,运行爬虫,作为一个文明的人,最好爬虫一次使用time.sleep()休息一段时间,一是为了不给服务器造成很大的客流量,二是爬虫过快,封禁ip等因素导致爬虫失败。
    if __name__ == '__main__':
    
        urls = ['https://www.kugou.com/yy/rank/home/' + str(i) + '-8888.html' for i in range(1, 24)]
        for url in urls:
            print(url)
            get_message(url)
            time.sleep(5)
    
    
    5.完整代码
    import csv
    import time
    import requests
    from bs4 import BeautifulSoup
    import os
    import pymysql
    
    if not os.path.exists('../tmp/_02_kugou'):
        os.makedirs('../tmp/_02_kugou')
    
    headers = {
        'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36',
    
    }
    
    
    def get_message(url):
        html = requests.get(url, headers=headers)
        soup = BeautifulSoup(html.text, 'lxml')
        ranks = soup.select('#rankWrap > div.pc_temp_songlist > ul > li > span.pc_temp_num')
        names = soup.select('#rankWrap > div.pc_temp_songlist > ul > li > a')
        times = soup.select('#rankWrap > div.pc_temp_songlist > ul > li > span.pc_temp_tips_r > span')
        # print(len(ranks))
        for i in range(0, len(ranks)):
            rank = ranks[i].get_text().strip()
            name = names[i].get_text().strip().split('-')[1]
            signer = names[i].get_text().strip().split('-')[0]
            time1 = times[i].get_text().strip()
            write_txt(rank + name + signer + time1)
            write_csv(rank, name, signer, time1)
            writer_mysql(rank, name, signer, time1)
            # print(rank, name, signer, time1)
    
    
    def write_txt(message):
        with open('../tmp/_02_kugou/kuGou.txt', 'a+') as f:
            f.write(message + '\n')
    
    
    def write_csv(rank, name, signer, time1):
        with open('../tmp/_02_kugou/kuGou.csv', 'a+') as f:
            csv_writer = csv.writer(f)
            csv_writer.writerow([rank, name, signer, time1])
    
    
    def writer_mysql(rank, name, signer, time1):
        con = pymysql.connect(user='root', password='root', db='spider', host='localhost', port=3306, charset='utf8')
        cursor = con.cursor()
        try:
            sql = '''INSERT INTO kugou(rank, name, signer, time) VALUES('%d', '%s', '%s', '%s')'''
            cursor.execute(sql % (int(rank), name, signer, pymysql.escape_string(time1)))
            con.commit()
        except pymysql.err.IntegrityError:
            pass
        cursor.close()
        con.close()
    
    
    if __name__ == '__main__':
    
        urls = ['https://www.kugou.com/yy/rank/home/' + str(i) + '-8888.html' for i in range(1, 24)]
        for url in urls:
            print(url)
            get_message(url)
            time.sleep(5)
    
    

    欢迎加入公众号交流学习,该公众号会发布爬虫,数据分析和后端的知识

    在这里插入图片描述

    展开全文
  • Linux 凭借如何的功能成为超算操作系统的最佳选择?...Linux 在超算 Top500 中占据操作系统的 94.2%。大家可以从下面的信息图表中对 Linux 超算份额有一个更加清晰的了解。 【编辑推荐】
     
    

    Linux 凭借如何的功能成为超算操作系统的最佳选择?Unixmen 撰文指出,Linux 凭借模块化、通用性、可扩展性、开源、社区支持和成本等方面的优势获得青睐。

    Linux 在超算 Top500 名中占据操作系统的 94.2%。大家可以从下面的信息图表中对 Linux 超算份额有一个更加清晰的了解。

    【编辑推荐】

    展开全文
  • 名字top500字典 各种格式及python脚本-附件资源
  • 密码弱口令TOP100&名字TOP500

    千次阅读 2018-07-10 11:07:41
    TOP500名字字典 zhangwei wangwei wangfang liwei linuo zhangmin lijing wangjing liuwei wangxiuying zhangli lixiuying wangli zhangjing zhangxiuying liqiang wangmin limin wanglei liuyang wangyan wangyong ...

    以下是在 12306 泄露的密码中,使用次数最多的密码排行,大家在修改密码时候,尽量避免使用类似的规则。

    密码中包含有 123456 数字的,出现 3236 次 
    密码中包含有 123 数字的,出现 11213 次 
    密码中包含有 520 数字的,出现 4549 次 
    密码中包含有 1314 数字的,出现 3113 次 
    密码中包含有 aini 的,出现 877 次 
    
      密码         出现次数   
    ----------  -------- 
    123456           392 
    a123456          282 
    123456a          168 
    5201314          161 
    111111           157 
    woaini1314       140 
    qq123456         100 
    123123            98 
    000000            97 
    1qaz2wsx          95 
    1q2w3e4r          84 
    qwe123            80 
    7758521           76 
    123qwe            68 
    a123123           63 
    123456aa          56 
    woaini520         56 
    woaini            52 
    100200            52 
    1314520           52 
    woaini123         51 
    123321            50 
    q123456           49 
    123456789         49 
    123456789a        49 
    5211314           48 
    asd123            48 
    a123456789        48 
    z123456           47 
    asd123456         47 
    a5201314          45 
    aa123456          44 
    zhang123          42 
    aptx4869          41 
    123123a           40 
    1q2w3e4r5t        37 
    1qazxsw2          37 
    5201314a          36 
    1q2w3e            35 
    aini1314          35 
    31415926          34 
    q1w2e3r4          34 
    123456qq          34 
    woaini521         34 
    1234qwer          33 
    a111111           33 
    520520            33 
    iloveyou          30 
    abc123            29 
    110110            29 
    111111a           29 
    123456abc         29 
    w123456           28 
    7758258           28 
    123qweasd         26 
    159753            26 
    qwer1234          25 
    a000000           25 
    qq123123          24 
    zxc123            24 
    123654            24 
    abc123456         23 
    123456q           23 
    qq5201314         22 
    12345678          22 
    000000a           21 
    456852            21 
    as123456          20 
    1314521           20 
    112233            19 
    521521            19 
    qazwsx123         19 
    zxc123456         19 
    abcd1234          19 
    asdasd            19 
    666666            19 
    love1314          18 
    QAZ123            18 
    aaa123            18 
    q1w2e3            18 
    aaaaaa            18 
    a123321           17 
    123000            17 
    11111111          17 
    12qwaszx          17 
    5845201314        16 
    s123456           16 
    nihao123          16 
    caonima123        16 
    zxcvbnm123        16 
    wang123           16 
    159357            16 
    1A2B3C4D          16 
    asdasd123         16 
    584520            16 
    753951            16 
    147258            16 
    1123581321        16 
    110120            16 
    qq1314520         15

    2014年的数据的,大家参考一些吧,有新的可以私信我一下。burpsuite爆破会用得到的。
    源出处

    TOP500名字字典
    zhangwei
    wangwei
    wangfang
    liwei
    linuo
    zhangmin
    lijing
    wangjing
    liuwei
    wangxiuying
    zhangli
    lixiuying
    wangli
    zhangjing
    zhangxiuying
    liqiang
    wangmin
    limin
    wanglei
    liuyang
    wangyan
    wangyong
    lijun
    zhangyong
    lijie
    zhangjie
    zhanglei
    wangqiang
    lijuan
    wangjun
    zhangyan
    zhangtao
    wangtao
    liyan
    wangchao
    liming
    liyong
    wangjuan
    liujie
    liumin
    lixia
    lili
    zhangjun
    wangjie
    zhangqiang
    wangxiulan
    wanggang
    wangping
    liufang
    zhangyan
    liuyan
    liujun
    liping
    wanghui
    wangyan
    chenjing
    liuyong
    liling
    liguiying
    wangdan
    ligang
    lidan
    liping
    wangpeng
    liutao
    chenwei
    zhanghua
    liujing
    litao
    wangguiying
    zhangxiulan
    lihong
    lichao
    liuli
    zhangguiying
    wangyulan
    liyan
    zhangpeng
    lixiulan
    zhangchao
    wangling
    zhangling
    lihua
    wangfei
    zhangyulan
    wangguilan
    wangying
    liuqiang
    chenxiuying
    liying
    lihui
    limei
    chenyong
    wangxin
    lifang
    zhangguilan
    libo
    yangyong
    wangxia
    liguilan
    wangbin
    lipeng
    zhangping
    zhangli
    zhanghui
    zhangyu
    liujuan
    libin
    wanghao
    chenjie
    wangkai
    chenli
    chenmin
    wangxiuzhen
    liyulan
    liuxiuying
    wangping
    wangping
    zhangbo
    liuguiying
    yangxiuying
    zhangying
    yangli
    zhangjian
    lijun
    lili
    wangbo
    zhanghong
    liudan
    lixin
    wangli
    yangjing
    liuchao
    zhangjuan
    yangfan
    liuyan
    liuying
    lixue
    lixiuzhen
    zhangxin
    wangjian
    liuyulan
    liuhui
    liubo
    zhanghao
    zhangming
    chenyan
    zhangxia
    chenyan
    yangjie
    wangshuai
    lihui
    wangxue
    yangjun
    zhangxu
    liugang
    wanghua
    yangmin
    wangning
    lining
    wangjun
    liuguilan
    liubin
    zhangping
    wangting
    chentao
    wangyumei
    wangnuo
    zhangbin
    chenlong
    lilin
    wangyuzhen
    zhangfengying
    wanghong
    lifengying
    yangyang
    liting
    zhangjun
    wanglin
    chenying
    chenjun
    liuxia
    chenhao
    zhangkai
    wangjing
    chenfang
    zhangting
    yangtao
    yangbo
    chenhong
    liuhuan
    wangyuying
    chenjuan
    chengang
    wanghui
    zhangying
    zhanglin
    zhangnuo
    zhangyumei
    wangfengying
    zhangyuying
    lihongmei
    liujia
    liulei
    zhangqian
    liupeng
    wangxu
    zhangxue
    liyang
    zhangxiuzhen
    wangmei
    wangjianhua
    liyumei
    wangying
    liuping
    yangmei
    lifei
    wangliang
    lilei
    lijianhua
    wangyu
    chenling
    zhangjianhua
    liuxin
    wangqian
    zhangshuai
    lijian
    chenlin
    liyang
    chenqiang
    zhaojing
    wangcheng
    zhangyuzhen
    chenchao
    chenliang
    liunuo
    wangqin
    zhanglanying
    zhanghui
    liuchang
    liqian
    yangyan
    zhangliang
    zhangjian
    liyun
    zhangqin
    wanglanying
    liyuzhen
    liuping
    chenguiying
    liuying
    yangchao
    zhangmei
    chenping
    wangjian
    liuhong
    zhaowei
    zhangyun
    zhangning
    yanglin
    zhangji
    gaofeng
    wangjianguo
    yangyang
    chenhua
    yanghua
    wangjianjun
    yangliu
    liuyang
    wangshuzhen
    yangfang
    lichunmei
    liujun
    wanghaiyan
    liuling
    chenchen
    wanghuan
    lidongmei
    zhanglong
    chenbo
    chenlei
    wangyun
    wangfeng
    wangxiurong
    wangrui
    liqin
    liguizhen
    chenpeng
    wangying
    liufei
    wangxiuyun
    chenming
    wangguirong
    lihao
    wangzhiqiang
    zhangdan
    lifeng
    zhanghongmei
    liufengying
    liyuying
    wangxiumei
    lijia
    wanglijuan
    chenhui
    zhangtingting
    zhangfang
    wangtingting
    wangyuhua
    zhangjianguo
    lilanying
    wangguizhen
    lixiumei
    chenyulan
    chenxia
    liukai
    zhangyuhua
    liuyumei
    liuhua
    libing
    zhanglei
    wangdong
    lijianjun
    liuyuzhen
    wanglin
    lijianguo
    liying
    yangwei
    liguirong
    wanglong
    liuting
    chenxiulan
    zhangjianjun
    lixiurong
    liuming
    zhoumin
    zhangxiumei
    lixuemei
    huangwei
    zhanghaiyan
    wangshulan
    lizhiqiang
    yanglei
    lijing
    litingting
    zhangxiurong
    liujianhua
    wanglili
    zhaomin
    chenyun
    lihaiyan
    zhangguirong
    zhangjing
    liuli
    likai
    zhangyu
    zhangfeng
    liuxiulan
    zhangzhiqiang
    lilong
    lixiuyun
    lixiufang
    lishuai
    lixin
    liuyun
    zhanglili
    liji
    zhangxiuyun
    wangshuying
    wangchunmei
    wanghongmei
    chenbin
    liyuhua
    liguifang
    zhangying
    chenfei
    wangbo
    liuhao
    huangxiuying
    liuyuying
    lishuzhen
    huangyong
    zhouwei
    wangxiufang
    wanglihua
    wangdandan
    libin
    wangguixiang
    wangkun
    liuhui
    lixiang
    zhangrui
    zhangguizhen
    wangshuhua
    liushuai
    zhangfei
    zhangxiufang
    wangyang
    chenji
    zhangguifang
    zhanglijuan
    wangrong
    wuxiuying
    yangming
    liguixiang
    mali
    liuqian
    yangxiulan
    yangling
    wangxiuhua
    yangping
    wangbin
    liliang
    lirong
    liguizhi
    lilin
    liyan
    lijian
    wangbing
    wangguifang
    wangming
    chenmei
    zhangchunmei
    liyang
    wangyan
    wangdongmei
    liufeng
    lixiuhua
    lidandan
    yangxue
    liuyuhua
    maxiuying
    zhanglihua
    zhangshuzhen
    lixiaohong
    zhangbo
    wangxin
    wangguizhi
    zhaoli
    zhangxiuhua
    zhanglin
    huangmin
    yangjuan
    wangjinfeng
    zhoujie
    wanglei
    chenjianhua
    liumei
    yangguiying
    lishuying
    chenyuying
    yangxiuzhen
    sunxiuying
    zhaojun
    zhaoyong
    liubing
    yangbin
    liwen
    chenlin
    chenping
    sunwei
    zhangli
    chenjun
    zhangnan
    liuguizhen
    liuyu
    liujianjun
    zhangshuying
    lihongxia
    zhaoxiuying
    libo
    wangli
    zhangrong
    zhangfan
    wangjianping
    zhangguizhi
    zhangyu
    zhouyong
    zhangkun
    xuwei
    wangguihua
    liuqin
    zhoujing
    xumin
    liutingting
    xujing
    yanghong
    wanglu
    zhangshulan
    zhangwen
    yangyan
    chenguilan
    zhouli
    lishuhua
    chenxin
    machao
    liujianguo
    liguihua
    wangfenglan
    lishulan
    chenxiuzhen
    zhangwei
    wangwei
    wangfang
    liwei
    linuo
    zhangmin
    lijing
    wangjing
    liuwei
    wangxiuying
    zhangli
    lixiuying
    wangli
    zhangjing
    zhangxiuying
    liqiang
    wangmin
    limin
    wanglei
    liuyang
    wangyan
    wangyong
    lijun
    zhangyong
    lijie
    zhangjie
    zhanglei
    wangqiang
    lijuan
    wangjun
    zhangyan
    zhangtao
    wangtao
    liyan
    wangchao
    liming
    liyong
    wangjuan
    liujie
    liumin
    lixia
    lili
    zhangjun
    wangjie
    zhangqiang
    wangxiulan
    wanggang
    wangping
    liufang
    zhangyan
    liuyan
    liujun
    liping
    wanghui
    wangyan
    chenjing
    liuyong
    liling
    liguiying
    wangdan
    ligang
    lidan
    liping
    wangpeng
    liutao
    chenwei
    zhanghua
    liujing
    litao
    wangguiying
    zhangxiulan
    lihong
    lichao
    liuli
    zhangguiying
    wangyulan
    liyan
    zhangpeng
    lixiulan
    zhangchao
    wangling
    zhangling
    lihua
    wangfei
    zhangyulan
    wangguilan
    wangying
    liuqiang
    chenxiuying
    liying
    lihui
    limei
    chenyong
    wangxin
    lifang
    zhangguilan
    libo
    yangyong
    wangxia
    liguilan
    wangbin
    lipeng
    zhangping
    zhangli
    zhanghui
    zhangyu
    liujuan
    libin
    wanghao
    chenjie
    wangkai
    chenli
    chenmin
    wangxiuzhen
    liyulan
    liuxiuying
    wangping
    wangping
    zhangbo
    liuguiying
    yangxiuying
    zhangying
    yangli
    zhangjian
    lijun
    lili
    wangbo
    zhanghong
    liudan
    lixin
    wangli
    yangjing
    liuchao
    zhangjuan
    yangfan
    liuyan
    liuying
    lixue
    lixiuzhen
    zhangxin
    wangjian
    liuyulan
    liuhui
    liubo
    zhanghao
    zhangming
    chenyan
    zhangxia
    chenyan
    yangjie
    wangshuai
    lihui
    wangxue
    yangjun
    zhangxu
    liugang
    wanghua
    yangmin
    wangning
    lining
    wangjun
    liuguilan
    liubin
    zhangping
    wangting
    chentao
    wangyumei
    wangnuo
    zhangbin
    chenlong
    lilin
    wangyuzhen
    zhangfengying
    wanghong
    lifengying
    yangyang
    liting
    zhangjun
    wanglin
    chenying
    chenjun
    liuxia
    chenhao
    zhangkai
    wangjing
    chenfang
    zhangting
    yangtao
    yangbo
    chenhong
    liuhuan
    wangyuying
    chenjuan
    chengang
    wanghui
    zhangying
    zhanglin
    zhangnuo
    zhangyumei
    wangfengying
    zhangyuying
    lihongmei
    liujia
    liulei
    zhangqian
    liupeng
    wangxu
    zhangxue
    liyang
    zhangxiuzhen
    wangmei
    wangjianhua
    liyumei
    wangying
    liuping
    yangmei
    lifei
    wangliang
    lilei
    lijianhua
    wangyu
    chenling
    zhangjianhua
    liuxin
    wangqian
    zhangshuai
    lijian
    chenlin
    liyang
    chenqiang
    zhaojing
    wangcheng
    zhangyuzhen
    chenchao
    chenliang
    liunuo
    wangqin
    zhanglanying
    zhanghui
    liuchang
    liqian
    yangyan
    zhangliang
    zhangjian
    liyun
    zhangqin
    wanglanying
    liyuzhen
    liuping
    chenguiying
    liuying
    yangchao
    zhangmei
    chenping
    wangjian
    liuhong
    zhaowei
    zhangyun
    zhangning
    yanglin
    zhangji
    gaofeng
    wangjianguo
    yangyang
    chenhua
    yanghua
    wangjianjun
    yangliu
    liuyang
    wangshuzhen
    yangfang
    lichunmei
    liujun
    wanghaiyan
    liuling
    chenchen
    wanghuan
    lidongmei
    zhanglong
    chenbo
    chenlei
    wangyun
    wangfeng
    wangxiurong
    wangrui
    liqin
    liguizhen
    chenpeng
    wangying
    liufei
    wangxiuyun
    chenming
    wangguirong
    lihao
    wangzhiqiang
    zhangdan
    lifeng
    zhanghongmei
    liufengying
    liyuying
    wangxiumei
    lijia
    wanglijuan
    chenhui
    zhangtingting
    zhangfang
    wangtingting
    wangyuhua
    zhangjianguo
    lilanying
    wangguizhen
    lixiumei
    chenyulan
    chenxia
    liukai
    zhangyuhua
    liuyumei
    liuhua
    libing
    zhanglei
    wangdong
    lijianjun
    liuyuzhen
    wanglin
    lijianguo
    liying
    yangwei
    liguirong
    wanglong
    liuting
    chenxiulan
    zhangjianjun
    lixiurong
    liuming
    zhoumin
    zhangxiumei
    lixuemei
    huangwei
    zhanghaiyan
    wangshulan
    lizhiqiang
    yanglei
    lijing
    litingting
    zhangxiurong
    liujianhua
    wanglili
    zhaomin
    chenyun
    lihaiyan
    zhangguirong
    zhangjing
    liuli
    likai
    zhangyu
    zhangfeng
    liuxiulan
    zhangzhiqiang
    lilong
    lixiuyun
    lixiufang
    lishuai
    lixin
    liuyun
    zhanglili
    liji
    zhangxiuyun
    wangshuying
    wangchunmei
    wanghongmei
    chenbin
    liyuhua
    liguifang
    zhangying
    chenfei
    wangbo
    liuhao
    huangxiuying
    liuyuying
    lishuzhen
    huangyong
    zhouwei
    wangxiufang
    wanglihua
    wangdandan
    libin
    wangguixiang
    wangkun
    liuhui
    lixiang
    zhangrui
    zhangguizhen
    wangshuhua
    liushuai
    zhangfei
    zhangxiufang
    wangyang
    chenji
    zhangguifang
    zhanglijuan
    wangrong
    wuxiuying
    yangming
    liguixiang
    mali
    liuqian
    yangxiulan
    yangling
    wangxiuhua
    yangping
    wangbin
    liliang
    lirong
    liguizhi
    lilin
    liyan
    lijian
    wangbing
    wangguifang
    wangming
    chenmei
    zhangchunmei
    liyang
    wangyan
    wangdongmei
    liufeng
    lixiuhua
    lidandan
    yangxue
    liuyuhua
    maxiuying
    zhanglihua
    zhangshuzhen
    lixiaohong
    zhangbo
    wangxin
    wangguizhi
    zhaoli
    zhangxiuhua
    zhanglin
    huangmin
    yangjuan
    wangjinfeng
    zhoujie
    wanglei
    chenjianhua
    liumei
    yangguiying
    lishuying
    chenyuying
    yangxiuzhen
    sunxiuying
    zhaojun
    zhaoyong
    liubing
    yangbin
    liwen
    chenlin
    chenping
    sunwei
    zhangli
    chenjun
    zhangnan
    liuguizhen
    liuyu
    liujianjun
    zhangshuying
    lihongxia
    zhaoxiuying
    libo
    wangli
    zhangrong
    zhangfan
    wangjianping
    zhangguizhi
    zhangyu
    zhouyong
    zhangkun
    xuwei
    wangguihua
    liuqin
    zhoujing
    xumin
    liutingting
    xujing
    yanghong
    wanglu
    zhangshulan
    zhangwen
    yangyan
    chenguilan
    zhouli
    lishuhua
    chenxin
    machao
    liujianguo
    liguihua
    wangfenglan
    lishulan
    chenxiuzhen

    源出处

    转载于:https://blog.51cto.com/10907603/2139653

    展开全文
  • 原文件名字top500链接: https://pan.baidu.com/s/1IepYUv9pY3O3gTROMlcDhg 密码: 62j5同时用python3写了个脚本读取name.txt的中文名字#!/usr/bin/env python# -*- conding:utf-8 -*-import refrom xpinyin import ...

    原文件名字top500

    链接: https://pan.baidu.com/s/1IepYUv9pY3O3gTROMlcDhg 密码: 62j5

    同时用python3写了个脚本

    读取name.txt的中文名字

    #!/usr/bin/env python

    # -*- conding:utf-8 -*-

    import re

    from xpinyin import Pinyin

    def 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 mz

    def 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)

    展开全文
  • 原文件名字top500 链接: https://pan.baidu.com/s/1cv0jPYb1-EBceoZz3QNvgg 密码: bat5 中文名字 链接: https://pan.baidu.com/s/1O3j0NxWrEncXlFZ1Li8IpQ 密码: xj7n 全拼 比如:zhangwei 链接:...
  • Top500 Green500 Graph500

    2013-04-14 13:21:18
    Top500前十超级计算机排名,其中第二和第七分别是中国深圳的Nebulae、天津的Tianhe超级计算机 Green500前十超级计算机排名 Graph500前十六超级计算机排名 转载于:...
  • 爆破字典用户名top500

    2018-12-13 13:58:44
    常见前500的用户名字典
  • TOP500: 一个为高性能计算机提供统计的组织.主要针对高性能计算机制造商,用户,潜在用户. Top500从1993年开始对高...2012年11月最新TOP500计算机排名,前10:   Rank Site 国家 System 名称
  • Top500、Green500、Graph500

    2013-04-12 19:09:02
    以下是2012年11月份的数据 从榜单中可以看出,第一是美国的Titan以17590TFlop/s的运算速度夺冠,中国最快的超级计算机天河-1A目前处于第八 在green500中,中国没有进入前十 在Graph排名中,中国也未能进入前十。...
  • 最近参加了一个数据挖掘比赛,所以一边比赛,一边学Python/(ㄒoㄒ)/~~,相比被算法折磨的死去活来,python就很友好了(●'◡'●),学了点基础就...中文也叫“美丽的汤”,安装也很简单。 打开 cmd 命令行(win + r...
  • 2017全球超级计算机500强榜单今日公布,中国“神威-太湖之光”超级计算机(无锡)以每秒125,435.9TFlop/s的峰值计算能力再次蝉联第一,实现三连冠,“天河二号”超算系统(广州)以每秒54,902.4TFlop/s的峰值计算能力...
  • 帮漂亮的大眼学妹提问:Python语言爬取douban上top500的电影的名字,存入movie.csv文件怎么做?
  • 帮我的漂亮大眼学妹问:python语言编写一个程序,爬取douban上top500电影的电影,保存为 movie.csv
  • 极简的爬虫,仅仅爬取酷狗TOP500音乐信息(排名、歌手、歌曲、歌曲时长),可供入门和想入门的朋友学习。
  • 爬取酷狗TOP500的数据

    2019-12-10 11:23:13
      爬取https://www.kugou.com/yy/rank/home/1-8888.html?from=rank 排名情况、歌手、歌曲和歌曲时间。 import requests from bs4 import BeautifulSoup import time import pandas as pd def get_links(): ...
  •  top500强,中国的Tianhe-1A位居第8。 Rank Site 国家 系统名称 核数 RMax(Tflop/s) 峰值(Tflop/s) 功率(KW) 1 DOE/SC/Oak Ridge Natio nal Laboratory United ...

空空如也

空空如也

1 2 3 4 5 ... 13
收藏数 244
精华内容 97
关键字:

top500名