-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.py
57 lines (53 loc) · 1.51 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
from icl import *
from tr import transform
import os
yaml.warnings({'YAMLLoadWarning': False})
globalConfiguration = {}
# 菜单
def mainMenu():
print('==========================')
print('1.数据管理')
print('2.配置迁移')
print('==========================')
print('0.退出')
print('==========================')
print('请输入您的选择:')
choice = input()
return choice
def iclMenu():
print('==========================')
print('1.查询近10条日志')
print('2.查询任务队列')
print('==========================')
print('0.返回')
print('==========================')
print('请输入您的选择:')
choice = input()
return choice
while True:
choice = mainMenu()
if choice == '1':
os.system('cls')
while True:
icl = Icl()
icl.initIcl()
subChoice = iclMenu()
if subChoice == '1':
icl.showLog(1, 10)
elif subChoice == '2':
icl.showTaskList()
elif subChoice == '0':
break
break
elif choice == '2':
os.system('cls')
# 从输入读取start
start = input('请输入需要转换的起始位置: ')
# 从输入读取end
end = input('请输入需要转换的终止位置: ')
# 从输入读取old
old = input('请输入需要转换的原始速通json: ')
transform(start, end, old)
break
elif mainMenu() == '0':
break