12 2021 档案
摘要:在线程或者进程池中执行代码 #!/usr/bin/env python # -*- coding: utf-8 -*- # @time: 2021/12/31 2:41 下午 # https://docs.python.org/zh-cn/3/library/asyncio-eventloop.ht
阅读全文
摘要:shell # shell命令 # 查看某个进程在哪个cpu 上运行 ps -eLo ruser,pid,ppid,psr,args # 查看cpu个数 cat /proc/cpuinfo |grep -c processor # 调整进程所使用的CPU taskset -cp 1 25718
阅读全文
摘要:安装pika模块 pip install pika==0.13.1 # github https://github.com/pika/pika/ # 官网 https://pika.readthedocs.io/en/stable/ 消费者脚本 # !/usr/bin/env python # -*
阅读全文
摘要:官网:https://grpc.github.io/grpc/python/grpc_asyncio.html
阅读全文
摘要:WebSocket 服务 使用Python FastAPI框架官网demo,官网地址:https://fastapi.tiangolo.com/zh/advanced/websockets/ #!/usr/bin/env python # -*- coding: utf-8 -*- # @time:
阅读全文
摘要:官网:https://www.djangoproject.com/download/
阅读全文
摘要:官网下载:https://www.pypy.org/download.html centos7安装pypy3.8 yum groupinstall -y "Development Tools" yum install -y libffi-devel ncurses-devel expat-devel
阅读全文