您好,我正在嘗試將我的目錄存儲到一個列表中。我可以用此代碼調用目錄: import os
path = r'c:/users/blahblahblah'
listing= os.listing(path)
for infile in listing:
print "current file is: "+infile";
這將輸出目錄中的每個文件。我想調用目錄中的每個文件並將每個文件的內
我有這樣的代碼: import os.path
import numpy as np
homedir=os.path.expanduser("~")
pathset=os.path.join(homedir,"\Documents\School Life Diary\settings.npy")
if not(os.path.exists(pathset)):
ds={"ORE_