随笔分类 -  Python

摘要:#### 使用 ``` pip install xxx -i url ``` ``` 清华大学(完全度和速度都很好,是一个优秀的pip镜像源) https://pypi.tuna.tsinghua.edu.cn/simple 阿里云(完全度和速度也很好,是一个不错的选择) https://mirro 阅读全文
posted @ 2023-07-12 16:19 snake_j 阅读(48) 评论(0) 推荐(0)
摘要:####方法1 ``` # 在celery task 中 加入 # from multiprocessing import current_process # current_process()._config={"semprefix":"/mp"} @app.task def create_tas 阅读全文
posted @ 2023-07-06 14:15 snake_j 阅读(74) 评论(0) 推荐(0)
摘要:#### 目录结构 ``` /data/celery/ |-- __init__.py |-- __pycache__ |-- run_test.py |-- start.sh |-- sxj | |-- celery.py | |-- __init__.py | |-- __pycache__ | 阅读全文
posted @ 2023-07-05 12:27 snake_j 阅读(45) 评论(0) 推荐(0)