Pycharm:运行配置中工作目录(Working directory)的作用
在Pycharm中编辑运行环境时,与Working Directory相关的配置:
1、未勾选Run with Python Console,并且没有写Working Directory,默认以工程根目录为起始目录进行相对路径的开端;
2、在勾选了Run with Python Console之后,必须配置Working Dierctory,否则会报错 the working directory '' does not exist。
3、当勾选了Run with Python Console,并且配置了Working Directory,此时程序中所有的相对路径都以Working Directory规定的路径为开端。