Giter Site home page Giter Site logo

ptaexerciseexportformathelper's Introduction

PTA Exercises Export Format Helper

不想复习 FDS 的产物,当你拿到一张别人给你的导出试卷却发现全是选项不好做题怎么办?

遮住选项!但是太不方便了,虽然我尝试过用 Snipaste 来贴白纸,但是还是容易剧透。

恰好 PTA 的导出是 html 文件,于是就有了这个。

我比较懒,只删掉了影响做题的部分,有好心人可以做一下信息脱敏,像我这种做题拉跨怪都不好意思分享自己的低分卷呜呜呜。

Usage

如你所见,requirements.txt 里只有一个 bs4

然后使用:

python format.py <.../xxx.html>

就会在目标文件同级产生一个 .../xxx_clean.html,刚好我删掉了 disabled 属性,就可以互动式做题了(答案还是自己对x)。

其实把答案折叠起来更方便,但是我不会也暂时懒得学(?)。

Disclaimer

本工具本意为个人使用,绝无鼓励传播 PTA 付费产品的想法!因此任何通过本工具传播 PTA 上下载的试卷的个人行为与我无关!与我无关!!

ptaexerciseexportformathelper's People

Contributors

isshikihugh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ptaexerciseexportformathelper's Issues

编码方式错误

存在一些卷子含有中文字符,在直接使用时会出现编码错误,我在两个open函数添加了encoding="utf-8"修复了这个bug

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.