提交 e809e253 创建 作者: 宋海霞's avatar 宋海霞

更新 test.py

上级 c24f8da4
...@@ -145,10 +145,6 @@ def outputPromptInfo(bIncludeCi, promptInfo, color): ...@@ -145,10 +145,6 @@ def outputPromptInfo(bIncludeCi, promptInfo, color):
print(Fore.WHITE, file = stream) print(Fore.WHITE, file = stream)
sys.stdout.flush() sys.stdout.flush()
def removeResultFile(args):
for filename in args:
if os.path.isfile(filename):
os.remove(filename)
if __name__ == "__main__": if __name__ == "__main__":
...@@ -171,14 +167,6 @@ if __name__ == "__main__": ...@@ -171,14 +167,6 @@ if __name__ == "__main__":
print() print()
# 清理项目
removefiles = []
files = os.listdir(".")
for f in files:
if f.endswith('.o') or f.endswith('.exe') or f.startswith('user_output') or f == "result_comparation.html":
removefiles.append(f)
removeResultFile(removefiles)
promptInfo = "正在使用make生成项目" promptInfo = "正在使用make生成项目"
outputPromptInfo(bIncludeCi, promptInfo, 1) outputPromptInfo(bIncludeCi, promptInfo, 1)
execResult = os.system("make") execResult = os.system("make")
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论