首发于 Python

Python IDLE Shell 设置默认路径

1 找到 IDLE 所在位置

进入IDEL可以看到路径为'D:\\wr-app\\Python310'

输入命令

Python 3.10.5 (tags/v3.10.5:f377153, Jun  6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
import os