os.path.join裏寫3個變量
注:
必須爲變量,不是變量需先定義爲變量
dst="/home/ming"
Images = "Images"
d = open('/log/aa.txt','r')
for e in d.readlines():
d.close()
if not os.path.exists(os.path.join(dst,e.strip(),Images)):
os.makedirs(os.path.join(dst,e.strip(),Images))
os.path.join裏寫3個變量
注:
必須爲變量,不是變量需先定義爲變量
dst="/home/ming"
Images = "Images"
d = open('/log/aa.txt','r')
for e in d.readlines():
d.close()
if not os.path.exists(os.path.join(dst,e.strip(),Images)):
os.makedirs(os.path.join(dst,e.strip(),Images))