一直用CMD开启本地服务,每一次都得切换路径,有点尴尬。记录一下,修改CMD默认路径
1.打开注册表编辑器(WIN+R打开运行。输入regedit,或者直接找到路径,双击打开C:Windows
egedit.exe);
2.定位到“HKEY_CURRENT_USERSoftwareMicrosoftCommandProcessor”下;
3.新建一个字符串值,命名为AutoRun,双击,设置值为括号内的字符串 【CD /D D:pythonCode】,括号中的 D:pythonCode 即为你希望改为的路径。
参考:https://blog.csdn.net/win7583362/article/details/70599093