随笔分类 -  python

摘要:poetry的安装与使用 相关网址 官网:https://python-poetry.org/ github: https://github.com/python-poetry/poetry 参考blog:https://blog.kyomind.tw/python-poetry/ 介绍 官网自我介 阅读全文
posted @ 2023-08-09 15:20 WenderWang 阅读(22365) 评论(0) 推荐(1)
摘要:python 3.7.4安装celery后执行celery --version报错 安装命令: pip install celery -i https://pypi.douban.com/simple 执行celery --version报错 AttributeError: 'EntryPoints 阅读全文
posted @ 2022-10-31 13:29 WenderWang 阅读(416) 评论(0) 推荐(0)
摘要:from functools import wraps import time # def retry(retry_time, retry_on_result, time_wait): # def test(func): # @wraps(func) # def wrapper(*args, **k 阅读全文
posted @ 2022-10-24 14:52 WenderWang 阅读(168) 评论(0) 推荐(0)
摘要:启动脚本 start.sh #!/bin/bash nohup <command> > /dev/null 2>&1 & echo $! > command.ppid 停止脚本 #!/bin/bash ppid=`cat command.ppid` ps -o pid --ppid $ppid -- 阅读全文
posted @ 2022-08-29 10:56 WenderWang 阅读(82) 评论(0) 推荐(1)
摘要:在requirements中添加 Werkzeug==2.0.0jinja2==3.0.3itsdangerous==2.0.1 重新安装即可 阅读全文
posted @ 2022-07-25 16:06 WenderWang 阅读(327) 评论(0) 推荐(0)
摘要:import errno, os, sys ERROR_INVALID_NAME = 123 def is_pathname_valid(pathname: str) -> bool: ''' `True` if the passed pathname is a valid pathname for 阅读全文
posted @ 2022-06-14 16:37 WenderWang 阅读(118) 评论(0) 推荐(0)
摘要:1. 机器安装python环境 2. 下载安装vscode 3. 打开vscode,安装python插件 4. 安装remote-development、remote-ssh插件 5. 离线情况下安装插件:https://marketplace.visualstudio.com/search?tar 阅读全文
posted @ 2021-12-14 13:54 WenderWang 阅读(1867) 评论(0) 推荐(0)