11 2022 档案

摘要:问题1:使用pytest-xdsit 插件运行后 logging 模块日志不会输出的问题 背景:自己写的日志打印模块,用pytest -n=auto 后日志就不会输出 # tools.set_loggging.py import logging.handlers import sys from co 阅读全文
posted @ 2022-11-30 20:49 chuangzhou 阅读(105) 评论(1) 推荐(0) 编辑
摘要:pytest_assertrepr_compare(op,left,right): class Foo: def __init__(self,value): self.value = value def test_foo_commpare(): f1 = Foo(1) f2 = Foo(2) ass 阅读全文
posted @ 2022-11-30 19:58 chuangzhou 阅读(56) 评论(0) 推荐(0) 编辑
摘要:whl 是什么? https://blog.csdn.net/fengbingchun/article/details/126910333 https://www.jb51.net/article/263575.htm 地址: https://www.lfd.uci.edu/~gohlke/pyth 阅读全文
posted @ 2022-11-29 11:42 chuangzhou 阅读(18) 评论(0) 推荐(0) 编辑
摘要:windows 安装mongodb 下载地址: https://www.mongodb.com/try/download/community tips: 不下载这个图形化工具,可能会很慢: 配置环境变量到Path E:\mongodb\bin 相关命令,需要以管理员身份执行: # 启动服务 net 阅读全文
posted @ 2022-11-26 17:34 chuangzhou 阅读(31) 评论(0) 推荐(0) 编辑
摘要:安装 教程:https://cuiqingcai.com/31102.html 自己在安装过程中遇到的错误: RuntimeError: Tesseract library not found in LIBPATH: [] 可以直接使用whl 文件来安装: 1.下载whl文件地址:https://g 阅读全文
posted @ 2022-11-23 22:58 chuangzhou 阅读(487) 评论(0) 推荐(0) 编辑
摘要:def query_by_msm_code(msm_code): conn = sqlite3.connect(BASE_PATH + '/' + 'search_prod.db') cur = conn.cursor() sql = "select jlc_code from code_info 阅读全文
posted @ 2022-11-22 21:56 chuangzhou 阅读(957) 评论(0) 推荐(0) 编辑
摘要:https://www.scootersoftware.com/download.php 阅读全文
posted @ 2022-11-22 15:28 chuangzhou 阅读(9) 评论(0) 推荐(0) 编辑
摘要:目录学习资料基本使用参数设置POST 请求ClientSessionTCPConnectorClientTimeout并发限制异步爬虫问题更新Cookie 学习资料 1.https://github.com/aio-libs/aiohttp 2.官网:https://docs.aiohttp.org 阅读全文
posted @ 2022-11-20 20:48 chuangzhou 阅读(490) 评论(0) 推荐(0) 编辑
摘要:目录入门常用函数asyncio.create_taskasyncio.gather()loop.all_tasks绑定回调函数Semaphore多任务协程await关键字案例异常学习资料: 入门 ''' 1.event_loop: 事件循环,相当于一个无限循环,可以把一些函数注册到这个时间循环上,当 阅读全文
posted @ 2022-11-20 15:00 chuangzhou 阅读(62) 评论(0) 推荐(0) 编辑
摘要:https://www.jb51.net/article/248328.htm 阅读全文
posted @ 2022-11-16 08:55 chuangzhou 阅读(8) 评论(0) 推荐(0) 编辑
摘要:2022-11-15 21:46:20,261 INFO [get_data.py(get_product_mode:46)] - 当前page >:255 Traceback (most recent call last): File "D:\jlc_auto_test\fa_search_tes 阅读全文
posted @ 2022-11-16 08:51 chuangzhou 阅读(1566) 评论(0) 推荐(0) 编辑
摘要:from apscheduler.schedulers.blocking import BlockingScheduler from datetime import datetime def test_tick(): print(f'time is {datetime.now()}') if __n 阅读全文
posted @ 2022-11-15 20:12 chuangzhou 阅读(44) 评论(0) 推荐(0) 编辑
摘要:扫操作如下: >>> a = (1,) >>> b, =a >>> b 1 hhhhhhhhhhhhhhhhh 阅读全文
posted @ 2022-11-13 15:51 chuangzhou 阅读(18) 评论(0) 推荐(0) 编辑
摘要:python中的逻辑操作符and 和or,也叫惰性求值,由于是惰性,只要确定了值就不往后解析代码了。 and 两种用法: 表达式 exp1 and exp2:用法同java 的 && 字面量值 >>> a = '' and [] and None >>> a '' >>> a = 2 and '' 阅读全文
posted @ 2022-11-13 15:28 chuangzhou 阅读(161) 评论(0) 推荐(0) 编辑
摘要:ASCCI 码表: ASCCI 存储和读取一个字符a的过程: GBK 存储一个字符a的过程: GBK 存储一个汉字的过程: 一个汉字为什么占2个字节? 计算机存储汉字时如果用一个字节也就是8个比特位可以表示:2^8=256 个汉字,可以表示的汉字太少 2个字节的话:2^16 = 65536 个汉字 阅读全文
posted @ 2022-11-13 13:07 chuangzhou 阅读(16) 评论(0) 推荐(0) 编辑
摘要:目录简介获取目录路径拼接路径判断删除文件夹和文件文件迭代查找 简介 跨平台,python 内置 PurePath:处理路径字符串 Path: 处理文件系统的真实路径 获取目录 # 将当前文件构建为Path对象 path_obj = Path(__file__) print(f'path_obj => 阅读全文
posted @ 2022-11-12 10:12 chuangzhou 阅读(19) 评论(0) 推荐(0) 编辑
摘要:错误1:fatal: refusing to merge unrelated histories $ git pull 20221109test master From https://gitee.com/chaung_sun/20221109test * branch master -> FETC 阅读全文
posted @ 2022-11-09 23:14 chuangzhou 阅读(24) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/musen6/p/16555640.html 阅读全文
posted @ 2022-11-09 20:21 chuangzhou 阅读(6) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/pzy_666/article/details/123017956 https://blog.csdn.net/qq_33539213/article/details/105999724 https://blog.csdn.net/pzy_666/arti 阅读全文
posted @ 2022-11-09 08:53 chuangzhou 阅读(22) 评论(0) 推荐(0) 编辑
摘要:- with 语句的目的是简化try/finally ,即便由于异常,return,sys.exit()调用而终止,也会执行指定的操作 - 上下文管理器协议包含__enter__和__exit__ 两个方法 - with 语句开始执行时会在上下文管理器对象上调用__enter__方法 - with 阅读全文
posted @ 2022-11-06 22:32 chuangzhou 阅读(38) 评论(0) 推荐(0) 编辑
摘要:目录简介搭建项目入门案例Django 配置信息资源文件配置模板配置中间件数据库配置 简介 Django 是一个开放源代码得 Web 应用框架,由Python 写成。最初用于管理劳伦斯出版集团旗下的一些以新闻内容为主的网站,即CMS(内容管理系统)软件,于2005年7月在BSD 许可证下发。Djang 阅读全文
posted @ 2022-11-05 22:09 chuangzhou 阅读(29) 评论(0) 推荐(0) 编辑
摘要:# -*- coding = utf-8 -*- # @Time: 20:55 # @Author: zzc # @File: spider.py # @Software: PyCharm import urllib.request from bs4 import BeautifulSoup imp 阅读全文
posted @ 2022-11-04 22:00 chuangzhou 阅读(50) 评论(0) 推荐(0) 编辑
摘要:问题1:社区版没有database 窗口怎么解决? https://www.jb51.net/article/255929.htm 安装完成Database Navigator后,按如下配置: 问题2:创建了table 后不会展示字段信息 解决:点下 no filter sqlite 基本使用: # 阅读全文
posted @ 2022-11-02 22:38 chuangzhou 阅读(381) 评论(0) 推荐(0) 编辑

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