import os. >>> os.getcwd(). '/python/python2-3'. os.listdir()#返回當前目錄下的所有文件. >>> os.listdir(). ['os.py', 'a', 'os.txt', 'a.py'].
確定! 回上一頁