会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
程序法
CnBlogs
Home
New Post
Contact
Admin
Subscription
Posts - 6 Articles - 0 Comments - 0 Views -
9894
2021年12月16日
requests突然返回:ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1091)
报的是SSL问题,试了verify=False,但无效。 搜索网上资料: 1、requests库一样也有一个cacert.pem,可以用编辑器打开cacert.pem,里面包含了很多可信任知名公司的证书/公钥。 2、certifi 库安装文件夹里面只有一个core.py和cacert.pem文件,c
Read More
posted @ 2021-12-16 09:05 程序法
阅读(3545)
评论(0)
推荐(0)
2020年9月5日
Matplotlib中显示中文字体-Mac
1、Mac的字体有一部分在这里(命令:ls /System/Library/Fonts/): /System/Library/Fonts/ 2、解决问题: from matplotlib.font_manager import FontProperties font = FontProperties
Read More
posted @ 2020-09-05 11:52 程序法
阅读(450)
评论(0)
推荐(0)
2020年8月9日
打开csv或文本文件时,移除首行\ufeff
问题出在编码方式上:encoding不是用 utf-8, 使用 utf-8-sig f = open(r'a.txt', encoding='utf-8-sig') 如果用utf-8,readlines读出来的列表就会是这样: ['\ufeff示例\n']
Read More
posted @ 2020-08-09 09:23 程序法
阅读(580)
评论(0)
推荐(0)
2020年7月8日
实现有道在线翻译
import requests from bs4 import BeautifulSoup # 实现有道在线翻译 trans_url = 'http://m.youdao.com/translate' headers = {'User-Agent': 'Mozilla/5.0 (Linux; And
Read More
posted @ 2020-07-08 22:07 程序法
阅读(192)
评论(0)
推荐(0)
2020年5月20日
日期推算:datetime
>>> import datetime >>> datetime.datetime.now() datetime.datetime(2020, 5, 20, 23, 23, 31, 57908) >>> cur_time = datetime.datetime.now() >>> cur_time.
Read More
posted @ 2020-05-20 23:36 程序法
阅读(254)
评论(0)
推荐(0)
2019年2月22日
Mac系统权限打开与关闭
打开系统权限: 关闭系统权限: 重复以上1~3步骤,第4步时输入:csrutil disable
Read More
posted @ 2019-02-22 10:23 程序法
阅读(4873)
评论(0)
推荐(0)
公告
昵称:
程序法
园龄:
6年4个月
粉丝:
0
关注:
0
<
2025年7月
>
日
一
二
三
四
五
六
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
Search
My Tags
root
(1)
Mac
(1)
系统权限
(1)
PostArchives
2021/12(1)
2020/9(1)
2020/8(1)
2020/7(1)
2020/5(1)
2019/2(1)
Top Posts
1. Mac系统权限打开与关闭(4873)
2. requests突然返回:ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1091) (3545)
3. 打开csv或文本文件时,移除首行\ufeff(580)
4. Matplotlib中显示中文字体-Mac(450)
5. 日期推算:datetime(254)
点击右上角即可分享