python 創建文件夾

import time import os #取出當前時間 time_stamp = time.strftime('%Y%m%d', time.localtime(time.time())) #判斷文件夾是否存在 aabbcc = os.path.exists('/huigege/'+ time_stamp) if aabbcc==False:     #以當前時間做爲文件名並創建文件夾     
相關文章
相關標籤/搜索