随笔分类 - Python-Basic
摘要:1、 解决方式 # 使用下列方式安装 python3 -m pip install xxx 参考链接:https://blog.csdn.net/sandalphon4869/article/details/107693774
阅读全文
摘要:class WsClient(object): def __init__(self, url): self.url = url async def test(self): async with websockets.connect(self.url + '/test') as websocket:
阅读全文
摘要:1. 问题代码python self.browser.switch_to_window_handles(browser.window_handles[-1]) 2. 解决方法 self.browser.switch_to.window(browser.window_handles[-1])
阅读全文
摘要:1. 安装第三方库 pip install websocket pip install websocket-client 2. 实战 import time from websocket import create_connection url = 'ws://192.168.1.100:8888/
阅读全文
摘要:1. 默认打印是一行的 debug_logger.info(f'[rsp json] {rsp.json()}') 2022-01-10 20:38:53,108 | root | INFO | [rsp json] {'code': 200, 'msg': 'SUCCESS', 'data': {
阅读全文
摘要:1. 开始我是用sudo去安装, 可能用到了系统环境 sudo pip3 install -r requirements.txt 2. 改成如下即可 pip3 install -r requirements.txt --user
阅读全文
摘要:1. 安装pip依赖报错 2. 处理方法 pip3 install -U pip setuptools
阅读全文
摘要:主要是安装 brew install mysql-connector-c 其他部分参考:https://www.cnblogs.com/layezi/p/11297933.html
阅读全文
摘要:jpypel库 调用java脚本
阅读全文