- 博客(3)
- 收藏
- 关注
原创 正则表达式之爬取妹子图
re模块确实好用啊 finfall方法; findall(string[, pos[, endpos]]) / re.findall(pattern, string[, flags]): 返回所有匹配的List 以列表形式返回全部能匹配的字串。 import re p = re.compile(r'\d+') print p.findall('one1two2three3four4') ...
2018-10-21 20:04:08 511
转载 python骚操作 微信远程控制电脑
前段时间在某微信公众号上看到的,觉得很棒,好东西就要分享出来嘛 import itchat import os import time import cv2 sendMsg = u"{消息助手}:暂时无法回复" usageMsg = u"使用方法:\n1.运行CMD命令:cmd xxx (xxx为命令)\n" \ u"-例如关机命令:\ncmd shutdown -s -t...
2018-10-08 19:59:49 317
原创 python爬取有道翻译出现错误{"errorCode":50}解决方法
python爬取有道翻译 import urllib.request import urllib.parse import json content = input("请输入需要翻译的内容:") url = 'http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule' data = {} data['i']= ...
2018-10-05 17:00:39 2546
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人