12345678910111213141516 |
- from utils.configuration import Configuration
- def interact_module(classname,id,choices,output_type):
- print("'--------------------------Interact--------------------------'")
- for i, choice in enumerate(choices, 1):
- print(f"{i}:{choice}")
- choose_num=int(input("[选择]输入选择对应数字:"))
- choose=choices[choose_num-1]
- save_2_json(classname,id,output_type,choose)
- def save_2_json(classname,id,output_type,data):
- configuration=Configuration()
- file_path="Interact_"+classname+"_output.json"
- configuration.save_2_json(file_path,output_type,data)
|