【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,所以还有很大的提升空间

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

96 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

  26. My coder is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the expenses.

    But he’s tryiong none the less. I’ve been using WordPress on several websites
    for about a year and am concerned about switching to another platform.

    I have heard fantastic things about blogengine.net.
    Is there a way I can transfer all my wordpress posts into it?

    Any kind of help would be really appreciated!

  27. My brother suggested I might like this blog.
    He was entirely right. This post actually made my day.
    You cann’t imagine just how much time I had spent for this information! Thanks!

  28. You really make it seem so easy with your presentation but
    I find this matter to be actually something which I think I would never
    understand. It seems too complicated and extremely broad for me.
    I am looking forward for your next post, I’ll try to
    get the hang of it!

  29. Attractive component to content. I just stumbled upon your weblog and in accession capital to claim
    that I acquire in fact enjoyed account your blog posts.
    Any way I will be subscribing in your feeds or even I success you get entry to persistently quickly.

  30. Very nice post. I just stumbled upon your blog and wanted to say that I’ve truly
    enjoyed surfing around your blog posts. In any case I’ll
    be subscribing to your rss feed and I hope you write again very soon!

  31. Hi, Neat post. There is an issue with your website in web explorer, might test this?
    IE still is the market leader and a good element of other folks will leave out your excellent writing due to this problem.

  32. magnificent post, very informative. I ponder why the other experts of this sector don’t realize
    this. You must proceed your writing. I am sure, you’ve a great
    readers’ base already!

  33. I’m curious to find out what blog system you are using? I’m experiencing
    some small security issues with my latest website and I’d like to find something more
    safe. Do you have any solutions?

  34. Heya i am for the first time here. I found this board and I find It really useful & it helped
    me out a lot. I hope to give something back and help others like
    you helped me.

  35. I think that everything posted was very logical. But, what about this?
    suppose you added a little content? I am not
    suggesting your information is not good, but what if you added a headline that makes people want more?
    I mean 【Python】qCleaner – Qizy's Database is kinda boring.
    You could glance at Yahoo’s front page and see how
    they create news headlines to grab people to click. You might try adding a video or a pic
    or two to get people excited about everything’ve got to say.
    Just my opinion, it could bring your blog a little livelier.

  36. Hello I am so thrilled I found your website, I really found you by error, while I was browsing on Digg for
    something else, Anyways I am here now and would just like to say cheers for a fantastic post and a all round entertaining
    blog (I also love the theme/design), I don’t have time to read it all at the minute but I have bookmarked
    it and also added in your RSS feeds, so when I have time I will be back to read a lot
    more, Please do keep up the great work.

  37. Excellent goods from you, man. I’ve understand your stuff previous to and you’re just extremely excellent.
    I really like what you’ve acquired here, certainly like what
    you’re saying and the way in which you say it.
    You make it entertaining and you still take care of to keep it smart.

    I can’t wait to read far more from you. This is really a great
    website.

  38. Howdy just wanted to give you a quick heads up. The text in your post seem to be running off the screen in Firefox. I’m not sure if this is a formatting issue or something to do with internet browser compatibility but I thought I’d post to let you know. The style and design look great though! Hope you get the problem resolved soon. Many thanks

  39. certainly like your web site however you have to check the spelling
    on quite a few of your posts. Several of them are rife with spelling issues and I find it very
    bothersome to inform the reality then again I’ll definitely come again again.

  40. Attractive section of content. I just stumbled upon your
    web site and in accession capital to say that I acquire in fact loved account
    your weblog posts. Anyway I’ll be subscribing on your
    augment and even I fulfillment you access persistently quickly.

  41. I’m really impressed with your writing skills and also with
    the layout on your blog. Is this a paid theme or did you customize it yourself?

    Anyway keep up the nice quality writing, it’s rare to see a great blog like this one these days.

  42. Greetings! Quick question that’s completely off topic. Do you know how to make your site mobile friendly?
    My website looks weird when viewing from my iphone4.
    I’m trying to find a template or plugin that might be able to correct this
    problem. If you have any recommendations, please share. Appreciate it!

  43. Greetings, I think your website might be having browser compatibility issues.
    Whenever I look at your blog in Safari, it looks fine however,
    if opening in Internet Explorer, it’s got some overlapping
    issues. I just wanted to provide you with a quick heads
    up! Aside from that, wonderful blog!

  44. Definitely believe that which you said. Your favorite justification appeared to be on the internet the simplest thing to be aware of.
    I say to you, I definitely get annoyed while people think about worries that they just do not know about.

    You managed to hit the nail upon the top as well as defined out the whole thing without having side effect
    , people can take a signal. Will likely be back to
    get more. Thanks

  45. I would like to express thanks to you for bailing me out of such a condition. Because of searching through the the web and obtaining views which are not beneficial, I was thinking my life was over. Existing without the presence of answers to the issues you have solved by way of your good guideline is a crucial case, as well as the ones which could have badly damaged my entire career if I had not come across your web site. The mastery and kindness in controlling all the pieces was important. I am not sure what I would’ve done if I hadn’t come upon such a stuff like this. I can now look ahead to my future. Thanks so much for the skilled and effective help. I will not be reluctant to propose the blog to anybody who should get direction about this issue.

  46. Hey this is kind of of off topic but I was wondering if blogs use WYSIWYG
    editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding know-how so I wanted to get advice from someone
    with experience. Any help would be enormously appreciated!

  47. It’s a pity you don’t have a donate button! I’d definitely donate to this brilliant
    blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my
    Google account. I look forward to brand new updates and will talk
    about this blog with my Facebook group. Talk soon!

  48. It is appropriate time to make some plans for the future and it is time to be happy.
    I have read this submit and if I may I wish to counsel you
    some interesting issues or advice. Perhaps you can write subsequent articles
    regarding this article. I desire to learn even more issues about it!

  49. I have read a few good stuff here. Certainly price bookmarking for
    revisiting. I wonder how a lot attempt you place to create the
    sort of fantastic informative site.

  50. Thanks on your marvelous posting! I really enjoyed reading it, you happen to be a great author.I will be sure to bookmark your blog and will often come back down the road. I want to encourage you continue your great posts, have a nice holiday weekend!

  51. Spot on with this write-up, I seriously believe that this web site
    needs far more attention. I’ll probably be returning to see
    more, thanks for the advice!

  52. Oh my goodness! Amazing article dude! Many thanks,
    However I am going through problems with your RSS. I don’t know why I cannot
    subscribe to it. Is there anyone else having similar RSS problems?

    Anybody who knows the solution will you kindly respond?

    Thanx!!

  53. Spot on with this write-up, I absolutely believe this amazing site needs far more attention.
    I’ll probably be returning to read more, thanks for
    the info!

  54. I have to thank you for the efforts you have put in writing this blog.
    I really hope to see the same high-grade blog posts from
    you later on as well. In fact, your creative writing abilities has
    encouraged me to get my very own blog now 😉

  55. Your style is so unique compared to other folks I have read stuff from.
    I appreciate you for posting when you have the
    opportunity, Guess I will just bookmark this blog.

Leave a Reply

Your email address will not be published. Required fields are marked *