随笔分类 -  Python-Basic

摘要:1、官网 https://github.com/conda-forge/miniforge 2、下载 https://github.com/conda-forge/miniforge/releases 3、安装 Install Unix-like platforms Download the ins 阅读全文
posted @ 2022-06-29 14:39 代码诠释的世界 阅读(8262) 评论(2) 推荐(0) 编辑
摘要:1、官方 https://docs.conda.io/projects/conda/en/latest/configuration.html 2、国内常用镜像 https://developer.aliyun.com/mirror/anaconda/ https://mirrors.tuna.tsi 阅读全文
posted @ 2022-06-29 11:45 代码诠释的世界 阅读(10639) 评论(1) 推荐(0) 编辑
摘要:1、官网 https://github.com/pyenv/pyenv 2、安装pyenv brew install pyenv 配置 export PYENV_ROOT=/usr/local/var/pyenv export PATH="$PYENV_ROOT/bin:$PATH" export 阅读全文
posted @ 2022-05-13 21:25 代码诠释的世界 阅读(478) 评论(0) 推荐(0) 编辑
摘要:1、直连模式 #!/usr/bin/env python # -*- coding:utf-8 -*- import redis r = redis.Redis(host='192.168.1.110', socket_connect_timeout=10, port=6379, db=0, pas 阅读全文
posted @ 2022-04-29 11:12 代码诠释的世界 阅读(2539) 评论(0) 推荐(0) 编辑
摘要:1、 官网 https://www.elastic.co/cn/downloads/elasticsearch 2、python库 https://pypi.org/project/elasticsearch/ 注意:安装的版本要和操作的es版本一致 pip install elasticsearc 阅读全文
posted @ 2022-04-29 10:04 代码诠释的世界 阅读(135) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://redis.io/ 2、redis库 pypi https://github.com/redis/redis-py/ https://pypi.org/project/redis/ 3、安装 pip install redis 4、基于哨兵模式封装的增删改查 参考链接: h 阅读全文
posted @ 2022-04-27 15:08 代码诠释的世界 阅读(366) 评论(0) 推荐(0) 编辑
摘要:1、使用lambda函数 # 匿名函数, 返回值为函数 func = lambda: "foo" print(func) 2、使用内部函数(局部函数) # 类似装饰器写法 def decorator(func): def _(*args, **kwargs): return func(*args, 阅读全文
posted @ 2022-04-25 20:58 代码诠释的世界 阅读(1571) 评论(0) 推荐(0) 编辑
摘要:1. 工具 https://github.com/baowenbo/DAIN https://github.com/xinntao/ESRGAN https://github.com/jantic/DeOldify 2. 介绍 DAIN,对视频进行补帧处理,提高视频流畅度 ESRGAN,对视频进行超 阅读全文
posted @ 2022-03-18 10:28 代码诠释的世界 阅读(219) 评论(0) 推荐(0) 编辑
摘要:1、官网 https://www.selenium.dev/selenium-ide/ Getting Started · Selenium IDE 2、插件安装 可以使用谷歌和火狐 3. 步骤 https://zhuanlan.zhihu.com/p/137206279 参考链接: https:/ 阅读全文
posted @ 2022-03-17 20:43 代码诠释的世界 阅读(281) 评论(0) 推荐(0) 编辑
摘要:1. 官网 http://mysql-python.sourceforge.net/MySQLdb.html 2. github地址 python2 https://github.com/farcepest/MySQLdb1 python3 https://github.com/PyMySQL/my 阅读全文
posted @ 2022-03-17 20:21 代码诠释的世界 阅读(478) 评论(0) 推荐(0) 编辑
摘要:1. 官网 https://pymysql.readthedocs.io/en/latest/ 2. 安装 You can install it with pip: $ python3 -m pip install PyMySQL To use "sha256_password" or "cachi 阅读全文
posted @ 2022-03-16 21:01 代码诠释的世界 阅读(198) 评论(0) 推荐(0) 编辑
摘要:1. 网上的说法比较多 2. 我的是因为密码输错了 阅读全文
posted @ 2022-03-16 14:06 代码诠释的世界 阅读(321) 评论(0) 推荐(0) 编辑
摘要:1、下载地址 https://registry.npmmirror.com/binary.html?path=chromedriver/ http://chromedriver.storage.googleapis.com/index.html 2、工程配置 3、使用 class BaseActio 阅读全文
posted @ 2022-03-15 10:49 代码诠释的世界 阅读(443) 评论(0) 推荐(0) 编辑
摘要:1. 处理方法 sudo apt-get install libxcb-xinerama0 参考链接: https://blog.csdn.net/u012308586/article/details/108509503 阅读全文
posted @ 2022-03-10 14:21 代码诠释的世界 阅读(390) 评论(0) 推荐(0) 编辑
摘要:一. pytest内部机制 pytest自带失败重跑机制,在运行中传入参数即可。 --lf 参数:运行上次失败的用例,如果没有则全部运行。 --ff参数:运行全部用例,上次失败的优先运行。 --lf, --last-failed rerun only the tests that failed at 阅读全文
posted @ 2022-03-04 10:44 代码诠释的世界 阅读(874) 评论(0) 推荐(1) 编辑
摘要:一、官网 https://docs.pytest.org/en/7.0.x/search.html?q=skip 二、相关使用方法 1. @pytest.mark.skip() 2. @pytest.mark.skip(reason='跳过原因') 3. @pytest.mark.skipif(ex 阅读全文
posted @ 2022-03-04 10:35 代码诠释的世界 阅读(82) 评论(0) 推荐(0) 编辑
摘要:1. 官网 https://playwright.dev/docs/intro 2. github https://github.com/microsoft/playwright-python 3. 安装 # 安装playwright库 pip install playwright # 安装浏览器驱 阅读全文
posted @ 2022-03-02 20:36 代码诠释的世界 阅读(2570) 评论(0) 推荐(0) 编辑
摘要:一. pep8 1. 官网 https://www.python.org/dev/peps/pep-0008/ https://pypi.python.org/pypi/flake8/ 2. 安装 pip install pep8 3. 使用 flake8 [file name or directo 阅读全文
posted @ 2022-03-02 17:50 代码诠释的世界 阅读(190) 评论(0) 推荐(0) 编辑
摘要:1. 第三方库 pip install jira 2. 官方文档 https://jira.readthedocs.io/examples.html 3. 使用方法 form jira import JIRA jira = JIRA('http://jira.***.com/', auth=(use 阅读全文
posted @ 2022-03-02 14:14 代码诠释的世界 阅读(428) 评论(0) 推荐(0) 编辑
摘要:1. 官网链接 https://pytest-dependency.readthedocs.io/en/stable/ 这篇文章讲的很细了, 想了解更多, 看官方文档 参考链接:http://t.zoukankan.com/se7enjean-p-13513131.html 阅读全文
posted @ 2022-02-17 16:54 代码诠释的世界 阅读(84) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示