示例#1
0
import os
from job import Job
from category import JobCategory
from type import T
from newcase import do
from color import Colored
from util import validateJob
from autoRead import parse_excel
from util import isExist

cl = Colored()

valid = True

print(cl.green("请选择你要做的新case类型【1-4】:"))
print(cl.cyan(" 1. USA"))
print(cl.cyan(" 2. CAN"))
print(cl.cyan(" 3. 非WMT"))
print(cl.cyan(" 4. 印刷"))
a = input(cl.magenta("your selection is: "))

if a != '1' and a!='2' and a!='3' and a!='4':
    print("非法操作,程序退出")
    exit()

job = Job()

def handle_type(t):
    if t == 1:
       job.t = T.ADDAPTATION
    elif t==2 :
示例#2
0
 def greenColor(self, str):
     return Colored.green(str)