【Python】qCleaner

背景

大家存比赛的时候一般都会把源码一起存下来
但有些同学交源码之前喜欢编译一下
于是就有很多废的.exe文件
而且这些文件大小都在$1M$以上,所以占用了极大的空间

qCleaner

于是我就用Python写了一个小工具
大概就长这样啦:

我知道很丑

它会递归扫描指定目录下的所有目录
然后每找到一个.cpp文件就会在同一个目录下查找同名.exe文件
如果存在的话,就会把同名.exe文件删掉

怎么样?是不是很贴心?
我大概用这货删掉了快$2G$的.exe文件吧!

获取与使用

  1. 打开https://github.com/yongzhengqi/qCleaner/releases
  2. 下载qCleaner.zip并解压
  3. 双击qCleaner即可打开程序
  4. 手动输入路径,或者点击浏览来选择路径。之后点击清理即可

为什么不用脚本

  1. qCleaner有可视化界面,便于使用
  2. qCleaner可以实时显示清理进度,也可以随时强行终止
  3. 我编不出来了qwq

后记

总之,qCleaner作为我正式写的第一个Python程序,我还是很满意的
而且这货的GUI是用的PyQt,所以还有很大的提升空间

嗯,大概就这样了吧
这可能是我退役前写的第一个也是最后一个自己想写的程序了吧

43 thoughts to “【Python】qCleaner”

  1. You could definitely see your skills within the work you write.
    The sector hopes for even more passionate writers like you who
    aren’t afraid to mention how they believe. Always follow your heart.

  2. Hello! This is my first visit to your blog! We
    are a group of volunteers and starting a new initiative in a
    community in the same niche. Your blog provided us valuable information to work on. You
    have done a outstanding job!

  3. It’s appropriate time to make some plans for the long run and it is time to be happy.
    I have read this post and if I may I wish to counsel you few fascinating issues or advice.

    Maybe you can write next articles regarding this article.
    I desire to learn more things approximately it!

  4. Hi there every one, here every one is sharing these knowledge, thus it’s pleasant to read this webpage,
    and I used to visit this webpage all the time.

  5. I seriously love your blog.. Great colors & theme.

    Did you create this amazing site yourself? Please reply back as I’m attempting
    to create my own site and want to know where you got this from or just what the theme is called.

    Thanks!

  6. I loved as much as you will receive carried out right here.

    The sketch is attractive, your authored material stylish.

    nonetheless, you command get got an edginess over that you wish be delivering the following.
    unwell unquestionably come more formerly again as exactly the same nearly a lot often inside case you
    shield this increase.

  7. Hello very cool blog!! Man .. Excellent .. Superb ..
    I will bookmark your website and take the feeds also?
    I am satisfied to find numerous helpful info here in the publish, we need develop more techniques in this regard,
    thanks for sharing. . . . . .

  8. Thanks for the marvelous posting! I actually enjoyed reading it, you
    are a great author. I will ensure that I bookmark your blog and will eventually come back from now on. I want
    to encourage yourself to continue your great work, have a nice holiday weekend!

  9. Fantastic beat ! I wish to apprentice at the same time as you amend your
    site, how could i subscribe for a weblog website?

    The account helped me a acceptable deal. I were tiny bit
    acquainted of this your broadcast provided bright clear idea

  10. It is appropriate time to make some plans for the future and it is time to be happy.
    I have read this put up and if I may I desire to counsel you some fascinating issues or advice.
    Maybe you could write next articles referring to this article.
    I desire to learn more things approximately it!

  11. Thanks on your marvelous posting! I genuinely enjoyed reading it, you can be a great author.
    I will make sure to bookmark your blog and will often come back from now on. I
    want to encourage yourself to continue your great job, have a nice day!

  12. Great website you have here but I was wanting to know if you knew of any discussion boards that cover the same topics
    discussed in this article? I’d really love to be a part of group where I can get
    advice from other experienced individuals that share the same interest.
    If you have any recommendations, please let me know. Thank you!

  13. hello!,I like your writing very so much! percentage we communicate more approximately your post on AOL?
    I need a specialist on this area to solve my problem.
    May be that is you! Looking forward to see you.

  14. Hey there just wanted to give you a brief heads up and let you know a few of the
    pictures aren’t loading correctly. I’m not sure why but I think its a linking issue.
    I’ve tried it in two different internet browsers
    and both show the same outcome.

  15. Hey there would you mind letting me know which web
    host you’re utilizing? I’ve loaded your blog in 3 different browsers and I must say this blog loads a
    lot faster then most. Can you recommend a good internet hosting provider at a honest price?
    Kudos, I appreciate it!

  16. My spouse and I absolutely love your blog
    and find almost all of your post’s to be what precisely I’m looking for.
    Would you offer guest writers to write content in your case?
    I wouldn’t mind publishing a post or elaborating on a few of the subjects you write regarding here.
    Again, awesome blog!

  17. Whoa! This blog looks just like my old one!

    It’s on a completely different topic but it has
    pretty much the same layout and design. Excellent choice of
    colors!

  18. What i do not understood is in truth how you are now not really much
    more neatly-favored than you might be now. You’re so intelligent.

    You realize therefore considerably relating to this topic, produced
    me for my part imagine it from so many numerous angles.
    Its like men and women don’t seem to be involved unless it is one
    thing to accomplish with Girl gaga! Your personal stuffs nice.
    All the time care for it up!

  19. I read this piece of writing completely regarding the resemblance of most recent
    and preceding technologies, it’s amazing article.
    plenty of fish natalielise

  20. Great blog right here! Additionally your site quite a bit up fast!
    What host are you using? Can I am getting your
    affiliate link in your host? I want my web site loaded up as fast as yours lol

  21. Every weekend i used to pay a quick visit this web page, for the reason that i wish for
    enjoyment, as this this web site conations genuinely
    pleasant funny data too.

  22. Do you mind if I quote a couple of your articles as long as
    I provide credit and sources back to your site? My blog site is in the very same area
    of interest as yours and my visitors would certainly benefit from a lot of the information you present here.
    Please let me know if this ok with you. Appreciate it!

  23. Each forms off software have their personal advantages and drawbacks, it’s your choice to determine which form of Foreign currency trading softtware may beneffit you most.
    Thus, gemstone buyiny and selling can aalso bee promising in gemstone forums.

    Retail stores online formula ffor success depended
    heavily on advertising, it advertised on famous social networking sites
    and appearance engines.

  24. I must thank you for the efforts you’ve put in penning this website. I’m hoping to see the same high-grade blog posts by you later on as well. In fact, your creative writing abilities has encouraged me to get my own, personal blog now 😉

  25. Undeniably believe that which you stated. Your favorite reason appeared to
    be on the web the simplest thing to be aware of. I say to you, I definitely get irked while people consider worries that they plainly don’t know about.
    You managed to hit the nail upon the top and also defined out the whole thing without having side-effects , people could take a signal.

    Will probably be back to get more. Thanks

发表评论

电子邮件地址不会被公开。 必填项已用*标注