实现方案导入导出,根据选项自动生成文件名
This commit is contained in:
@@ -370,8 +370,14 @@ def show_scheme_id(file_list):
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# _main()
|
||||
file_list=find_type('./','.json')
|
||||
id_list=show_scheme_id(file_list)
|
||||
for i in id_list:
|
||||
print(i[1],i[0])
|
||||
if(len(sys.argv)>=3):
|
||||
path=sys.argv[1]
|
||||
file_list=find_type(path,'.json')
|
||||
id_list=show_scheme_id(file_list)
|
||||
for i in id_list:
|
||||
if(int(i[1])==int(sys.argv[2])):
|
||||
print("-->",i[1],i[0])
|
||||
else:
|
||||
print(" ",i[1],i[0])
|
||||
else:
|
||||
print("python scheme_data.py [path] [plan_id]")
|
||||
|
Reference in New Issue
Block a user