返回顶部

收藏

Change Dir

更多
import os

os.chdir('/server/accesslogs')

#Be sure to use the 'import os' style instead of 'from os import *'. This will keep 
#os.open() from shadowing the builtin open() function which operates much 
#differently.

标签:Python,File

收藏

0人收藏

支持

0

反对

0

发表评论