12 2020 档案
摘要:1、查端口:netstat -ano | findstr port 查到pid,进程号 2、杀进程:taskkill /f /t /im pid
阅读全文
摘要:https://www.mscto.com/python/178498.html 使用django做后台,接收图片 def logo_upload(request): if request.method == 'POST': name = request.body file =request.FIL
阅读全文
摘要:json 是一种str 介绍 json(JavaScript Object Notation, Java 脚本对象表示符)是一种特殊的数据格式,具有以下优点。 该数据格式独立于脚本语言(如c++,python,matlab等),可以被各种脚本语言调用,便于数据的跨语言调用。 该数据格式将数据序列化,
阅读全文
摘要:匹配换行符 re.DOTALL ps: pattern = r'APIResponse\((.*)\)' add_rule_response = re.findall(pattern,str(add_rule_response),flags=re.DOTALL)
阅读全文
摘要:ansible 安装 pip install ansible==2.9.1 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 测试ansible 连接 [root@localhost ~]# ansible all -m
阅读全文
摘要:现在很多网站都要求使用 HTTPS 协议,但是有些网站可能并没有设置好 HTTPS 证书,或者网站的 HTTPS 证书不被 CA 机构认可,这时候,这些网站可能就会出现 SSL 证书错误的提示。 我们可以在代码中中通过一些设置来忽略证书的验证。 import requests from reques
阅读全文

浙公网安备 33010602011771号