![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
生命不息丶折腾不止
这个作者很懒,什么都没留下…
展开
-
linux下配置安装python3
一、首先,官网下载python3的所需版本。wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz想下载到那个文件夹下就先进入到那个文件夹下——cd /home/download二、然后,解压缩文件》tar -xvf Python-3.6.0.tgz三、创建安装文件的路径。mkdir /usr/local/python3四、编译。...转载 2018-06-24 07:22:30 · 406 阅读 · 0 评论 -
Python模块subprocess
Python中可以执行shell命令的相关模块和函数有:os.systemos.spawn*os.popen* --废弃popen2.* --废弃commands.* --废弃,3.x中被移除import commandsresult = commands.getoutput('cmd')result = commands.getstatus(...转载 2018-06-28 16:01:28 · 1082 阅读 · 0 评论