Windows 切换 working directory 用函数 _chdir() 例如用计划任务启动,pwd 是 system32 使用相对路径的地方会出错。 在 main 函数刚启动的时候转换一下 working directory 可解。