在VS CODE中使用make,Makefile中写的是 clean: del -f *.o *.exe 改成 clean: rm -f *.o *.exe 就好了。 同样如果是rm报错,可以试试del。