标签:style blog ar os sp for 文件 on div
python文件目录的转换(转换到D盘),首先要 import os
>>> import os
>>> os.chdir("d:\");
查看运行的结果:
>>> os.chdir(‘d:\\‘)
>>> print os.getcwd();
d:>>> os.chdir("d:\\python27\ForTest");
标签:style blog ar os sp for 文件 on div
原文地址:http://www.cnblogs.com/zh9927/p/4130976.html