一般刪除文件時使用os庫,然后利用os.remove(path)即可完成刪除,如果刪除空文件夾則可使用os.removedirs(path)即可, 但是如果需要刪除整個文件夾,且文件夾非空時使用os.
看到這個題目你是怎么想的呢?這個很簡單啊,typeof 一下,再判斷length。 if(typeof unknownVariable ==='string' && unknown