python
大官人很忙
这个作者很懒,什么都没留下…
展开
-
Pycharm的一些配置(备忘)
一、配置文件和代码模板.py文件的模板配置打开Pycharm的File-->Settings--->Editor-->Code Style-->File and Code Templates,选中“Python Scripts”,在头部添加# -*- coding: utf-8 -*-# @File : ${NAME}.py# @Date : ${DATE} ${TIME}# @Author : Name# @Version : 1.0...原创 2020-05-09 14:46:43 · 190 阅读 · 0 评论 -
yaml.load()从5.1版本之后不再推荐使用
yaml升级到5.3版本之后,使用yaml.load()会有警告信息。YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details....原创 2020-02-20 20:18:03 · 6650 阅读 · 2 评论 -
Webdriver下载地址(备份)
Chrome driver下载地址:https://chromedriver.storage.googleapis.com/index.htmlEdge driver下载地址:https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/#downloadsIE driver下载地址:http://selenium...原创 2020-02-13 18:02:21 · 327 阅读 · 0 评论 -
Python获取网络图片的宽高
# -*- coding: utf-8 -*-from io import BytesIOfrom PIL import Imageimport requestsdef get_remote_pic_size(url): response = requests.get(path) image = Image.open(BytesIO(response.content)...原创 2019-11-27 09:35:02 · 638 阅读 · 0 评论