pip install fabricate python from fabricate import * python @atexit def handle_compile_error(exit_code): if exit_code != 0: python @atexit def handle_build_failure(): exit(1) python @checked_call def compile_code(source_file, target_file): ... python from fabricate import * @atexit def handle_compile_error(exit_code): if exit_code != 0: @atexit def handle_build_failure(): exit(1) @checked_call def compile_code(source_file, target_file): ... def build(): compile_code("main.c", "main.o") ... if __name__ == "__main__": main(["build"])


上一篇:
下一篇:
切换中文