22 Star 65 Fork 38

一个小白 / python_learn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
os系统模块.py 670 Bytes
一键复制 编辑 原始数据 按行查看 历史
一个小白 提交于 2020-09-24 22:29 . 添加机器学习讲义
#!/usr/bin/python3
# -*- coding:utf-8 -*-
__author__ = 'hyh'
__date__ = '2020/4/28 12:47'
import platform
import os
import time
def main():
OS = platform.platform()
print(f'系统版本是: {OS} ')
if 'Windows' in OS:
print('此系统是Windows')
elif 'Linux' in OS:
print('此系统是linux')
print('正在配置vim')
os.system(
'git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim')
time.sleep(2)
os.system(
'wget https://gitee.com/muaimingjun/python_learn/raw/master/.vimrc')
os.system('mv .vimrc ~/')
if __name__ == '__main__':
main()
Python
1
https://gitee.com/muaimingjun/python_learn.git
git@gitee.com:muaimingjun/python_learn.git
muaimingjun
python_learn
python_learn
master

搜索帮助