python itchat拦截微信群或好友撤回消息Python

import sysimport os, re, shutil, time, collections, jsonfrom html.parser import HTMLParserfrom xml.etree import ElementTree as ETreeimport itchatfrom itchat.content import *...
myluzh 发布于 

python使用requests库实现HTTP请求Python

requests是原生的http库,比urllib3更容易使用,语法格式如下:requests.request.method(url,**kwargs)参数说明methodw接收string。表示请求类型,例如GET,无默认值url接收string。表示请求的URL,无默认值**kwargs接收dict或其他pytho...
myluzh 发布于 

python使用urllib3库实现HTTP请求Python

使用urllib3库生成一个完整的http请求请求应该包含请求方式、请求连接、请求头、超时时间和重试次数。通过request方法可以创建一个请求,该方法返回http响应对象,语法如下:urllib3.request(method,url,headers,timeout)参数说明method接收string。表示请求类型,例如GET,...
myluzh 发布于 

python3对字符串进行md5加密Python

# 由于MD5模块在python3中被移除# 在python3中使用hashlib模块进行md5操作import hashlib# 输入待加密字符串str = input('Please enter the string to be MD5 encrypted:\n')# 创建md5对象m = hashlib.md5()# Tips#...
myluzh 发布于 

python更换国内的pip源Python

0x01 国内pip源地址阿里云 http://mirrors.aliyun.com/pypi/simple/豆瓣 http://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/s...
myluzh 发布于