首页
Java
Python
DevOps
前端
移动端
数据库
架构
爬虫
工具
开源
猿哥
累计撰写
1,975
篇文章
累计创建
73
个标签
累计收到
20
条评论
栏目
首页
Java
Python
DevOps
前端
移动端
数据库
架构
爬虫
工具
开源
目 录
CONTENT
以下是
python
相关的文章
2021-12-21
Python项目报错:check_hostname requires server_hostname
一、错误描述好好运行的项目突然报错:check_hostname requires server_hostname二、问题原因使用了高版本的urllib3库,有bug,当机器上有vpn一类的代理,就会产生此错误。三、解决方法3.1 使用低版本的urllib3查看当前的urllib3版本;如果其版本大
2021-12-21
264
0
0
Python
2021-12-21
Python项目报错:check_hostname requires server_hostname
一、错误描述好好运行的项目突然报错:check_hostname requires server_hostname二、问题原因使用了高版本的urllib3库,有bug,当机器上有vpn一类的代理,就会产生此错误。三、解决方法3.1 使用低版本的urllib3查看当前的urllib3版本;如果其版本大
2021-12-21
1002
0
0
Python
2021-11-15
Python正则表达式提取括号里的内容
代码使用Python的正则表达式提取括号里的内容,代码如下:# -*- coding:utf-8 -*-#! python2import restring = 'abe(ac)ad)'p1 = re.compile(r'[(](.*?)[)]', re.S) #最小匹配p2 = re.compile
2021-11-15
9818
0
3
Python
2021-11-14
使用Python将本地html发送到wordpress
1、Xmlrpc方式实现用到的库:python-xmlrpc-wordpressclass Push2WordPressXmlRpc(): def __init__(self,article_directory): self.article_directory = article
2021-11-14
411
0
0
Python
2021-11-14
使用Python将Markdown文件转为html
1.需要用到的库markdown==3.3.4python-markdown-math==0.8markdown-checklist==0.4.3pymdown-extensions==9.02.全部代码#!/usr/bin/env python3# -*- coding: utf-8 -*-# @
2021-11-14
648
0
0
Python
2021-11-14
Python的命名规范和约定
一、简明概述1、编码如无特殊情况, 文件一律使用 UTF-8 编码如无特殊情况, 文件头部必须加入#-*-coding:utf-8-*-标识2、代码格式2.1、缩进统一使用 4 个空格进行缩进2.2、行宽每行代码尽量不超过 80 个字符(在特殊情况下可以略微超过 80 ,但最长不得超过 120)理由
2021-11-14
304
0
0
Python
2021-11-14
Python报错:SyntaxError (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3 truncated UXXXXXXXX escape
报错描述:D:\PythonProjectDev\Env\Scripts\python.exe D:/PythonProjectDev/AutoPushBlog/test/test1.py File "D:/PythonProjectDev/AutoPushBlog/test/test1.py",
2021-11-14
286
0
0
Python