问题描述 M1芯片的Mac在vscode调试运行时候调用同目录其他文件失败,只能使用绝对路径。 解决办法 点击“设置”-输入"terminal"-选择"python"-勾选“Execute in File Dir”