給定一個目標路徑 path ,通過一行代碼就能夠判斷這是文件還是文件夾路徑 import os path = 'xxx' print(os.path.isfile(path)) ...
確定! 回上一頁