這次,我們使用 os.path.isdir() 來判斷一個檔案是不是資料夾。 # -*- coding: utf-8 -*- import os path = 'test' print('Is "{}" a dictionary?
確定! 回上一頁