摘要: l = []with open('tmp.txt', 'r', encoding='utf-8') as fr: for i in fr: l.append(i.replace('\n', ''))s = ','.join(list(set(','.join(l).split(',')))[1:]) 阅读全文
posted @ 2018-01-18 21:57 papering 阅读(317) 评论(0) 推荐(0) 编辑
摘要: mysql group by 组内排序 SELECT * FROM (SELECT MAX(id) AS t,wukong_uid, 1 AS tag FROM toutiao_uid_gathered_wukong GROUP BY wukong_uidUNION ALLSELECT id AS 阅读全文
posted @ 2018-01-18 16:51 papering 阅读(355) 评论(0) 推荐(0) 编辑
摘要: https://neo4j.com/docs/ Server version Neo4j/3.3.1 Server address 127.0.0.1:7687 Query MATCH (a:Person)-[:KNOWS]->(friend) WHERE a.name ="Arthur" RETU 阅读全文
posted @ 2018-01-18 15:07 papering 阅读(614) 评论(0) 推荐(0) 编辑
摘要: js = 'var a=document.getElementsByClassName("user-data-right")[0];a.target="_self";a.href="{}";a.click();'.format( 'https://www.toutiao.com/c/user/{}/ 阅读全文
posted @ 2018-01-18 13:51 papering 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 实时热点池塘 阅读全文
posted @ 2018-01-18 13:37 papering 阅读(106) 评论(0) 推荐(0) 编辑
摘要: charset='utf8mb4' conn = pymysql.connect(host=h, port=pt, user=u, passwd=p, db=db, charset='utf8mb4') 阅读全文
posted @ 2018-01-18 12:08 papering 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 头条关注 粉丝关系 张一鸣 8 阅读全文
posted @ 2018-01-18 11:05 papering 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Line #1218 : 101.232.208.245 - - [16/Jan/2018:02:47:34 +0800] "GET /?xltestdesfs HTTP/1.1" 200 3865 Line #1243 : 101.232.208.245 - - [16/Jan/2018:03:0 阅读全文
posted @ 2018-01-18 09:44 papering 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 关注的关注的关注。。。。 阅读全文
posted @ 2018-01-18 01:47 papering 阅读(101) 评论(0) 推荐(0) 编辑
摘要: [root@VM_61_158_centos ~]# curl http://ip.chinaz.com/220.112.233.179 |grep -e Whwtdhalf.*span.*span.*span.*span % Total % Received % Xferd Average Spe 阅读全文
posted @ 2018-01-18 01:02 papering 阅读(221) 评论(0) 推荐(0) 编辑