This commit is contained in:
2025-04-17 04:52:48 +08:00
commit 9985b73dc1
3708 changed files with 2387532 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import os
def deleteFileWithFormat(targetFolder, targetFormat):
for root,dirs,files in os.walk(targetFolder):
for file in files:
filePath = os.path.join(root,file)
if filePath.endswith(targetFormat):
os.remove(filePath)
def run():
getCurrentFolder = os.getcwd()
targetFolder = getCurrentFolder[:-9]
deleteFileWithFormat(targetFolder,'pyc')
if __name__ == "__main__":
run()