getcwd()和chdir()的用法 python
import os #加载operation systemos.getcwd #使用os.getcwd()可以获得当前的工作目录(current working directory)print(os.getcwd()) #D:\Python Code(我是把file建在D盘的)os.chdir('D:\Python Code\HeadFirstPython\Chapter