python的send2trash模块,顾名思义就是把一个文件丢入回收站。
import send2trash
baconFile = open('bacon.txt', 'a')
baconFile.write('Bacon is a vegetable')
baconFile.close()
send2trash.send2trash('bacon.txt')
python的send2trash模块,顾名思义就是把一个文件丢入回收站。
import send2trash
baconFile = open('bacon.txt', 'a')
baconFile.write('Bacon is a vegetable')
baconFile.close()
send2trash.send2trash('bacon.txt')
本文标题:Python send2trash
本文链接:https://www.haomeiwen.com/subject/dznhdftx.html
网友评论