16 Star 44 Fork 45

现任明教教主-乾颐堂 / qytang_Python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
2016.02.11 autorack UI 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
现任明教教主-乾颐堂 提交于 2016-02-11 17:51 . new file
#!/usr/bin/python3.4
# -*- coding=utf-8 -*-
import os
os.system('clear')
print('-' * 60)
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 18 + 'QYTANG AUTO RACK SCRIPT' + ' ' * 17 + '|')
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 58 + '|')
print('-' * 60)
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 18 + 'Select [1] : Clear Rack' + ' ' * 17 + '|')
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 18 + 'Select [2] : Preconfig Rack' + ' ' * 13 + '|')
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 18 + 'Select [3] : Export Config' + ' ' * 14 + '|')
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 18 + 'Select [4] : Exit' + ' ' * 23 + '|')
print('|' + ' ' * 58 + '|')
print('|' + ' ' * 58 + '|')
print('-' * 60)
select = input('Your Select?:')
if select == '1':
os.system('clear')
print('=' * 19 + 'Start Clear Rack' + '=' * 19)
os.system('python /python/cgi-bin/cjdclearrack.py')
elif select == '2':
os.system('clear')
print('=' * 19 + 'Start Preconfig Rack' + '=' * 19)
os.system('python /python/cgi-bin/cjdpreconfigrack.py')
elif select == '3':
os.system('clear')
print('=' * 19 + 'Start Export Rack' + '=' * 19)
os.system('python /python/cgi-bin/copyallconfigfinal.py')
elif select == '4':
os.system('clear')
print('=' * 19 + 'Bye!!!' + '=' * 19)
os._exit(1)
else:
print('Your Select is invalid!!!')
os._exit(1)
Python
1
https://gitee.com/qytang/qytang_Python.git
git@gitee.com:qytang/qytang_Python.git
qytang
qytang_Python
qytang_Python
master

搜索帮助