python的send2trash模塊,顧名思義就是把一個(gè)文件丟入回收站。
import send2trash
baconFile = open('bacon.txt', 'a')
baconFile.write('Bacon is a vegetable')
baconFile.close()
send2trash.send2trash('bacon.txt')
python的send2trash模塊,顧名思義就是把一個(gè)文件丟入回收站。
import send2trash
baconFile = open('bacon.txt', 'a')
baconFile.write('Bacon is a vegetable')
baconFile.close()
send2trash.send2trash('bacon.txt')