随笔分类 -  python

摘要:os模块 我们平时工作中很常用到的一个模块,通过os模块调用系统命令,获得路劲,获取操作系统的类型等都是使用该模块。 1,通过os获取系统类型 import os print(os.name) nt windows系统,os.name = 'nt',如果是linux系统os.name = 'posi 阅读全文
posted @ 2018-10-16 21:24 vekair 阅读(195) 评论(0) 推荐(0)
摘要:############################ requests的使用import requests# 发送请求, 使用的函数按照HTTP访问的方法,主要:get、post、put、delete、head、options,patch# 最终都是调用了request函数,这个函数的原型是: 阅读全文
posted @ 2018-10-12 23:56 vekair 阅读(299) 评论(0) 推荐(0)
摘要:查看虚拟环境下有哪些包pip feeze mkvirtualenv # 新建虚拟环境lsvirtualenv # 列出所有的虚拟环境workon # 进入或者切换虚拟环境deactivate # 退出当前虚拟环境rmvirtualenv # 删除虚拟环境 例如:mkvirtualenv --no-s 阅读全文
posted @ 2018-10-12 23:12 vekair 阅读(125) 评论(0) 推荐(0)
摘要:一、安装 源码安装 先下载最新的supervisor安装包:https://pypi.python.org/pypi/supervisor , 如: (python3命令为 pip install git+https://github.com/Supervisor/supervisor@master 阅读全文
posted @ 2018-10-08 15:02 vekair 阅读(4834) 评论(0) 推荐(0)