2020年4月7日

python多线程协程并行并发概念

摘要: 线程与进程 进程: 我们都知道计算机的核心是CPU,它承担了所有的计算任务;而操作系统是计算机的管理者,它负责任务的调度、资源的分配和管理,统领整个计算机硬件;应用程序侧是具有某种功能的程序,程序是运行于操作系统之上的。 (为了缓解头脑胀痛, 斜体字大体过一遍即可) 进程是一个具有一定独立功能的程序 阅读全文

posted @ 2020-04-07 21:09 不要挡着我晒太阳 阅读(1437) 评论(0) 推荐(1) 编辑

-bash: gunicorn: command not found

摘要: 原因:未配置环境变量 解决:我安装gunicorn用的pip3,所以找到python3的bin目录,将入环境变量即可 export PATH=$PATH:/usr/local/python3/bin 阅读全文

posted @ 2020-04-07 18:31 不要挡着我晒太阳 阅读(4509) 评论(0) 推荐(1) 编辑

适配模式

摘要: 适配器模式 Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of in 阅读全文

posted @ 2020-04-07 18:27 不要挡着我晒太阳 阅读(178) 评论(0) 推荐(0) 编辑

导航