GithubHelp home page GithubHelp logo

pta-single-choice-question-patch's Introduction

PTA-single-choice-question-patch

用于给PTA的单选题加上别的答案

其实也可以加填空

Update

20190129

可以在程序运行的一开始选择每个题目生成一个报告还是所有题目生成一个报告。

Usage

需要先把有问题的题目写出一个文档,工程中给出了一个例子problems.txt

文档格式如下:

  1. 5行为一个单位,中间没有额外的分隔符
  2. 第一行为题目ID
  3. 第二行为题目类型,为一个字母+整数的组合。字母代表题目类型,C为选择,B为填空。整数是html中关键字行到答案行的差值。
  4. 第三行为关键字,可以很长,但是一定要注意唯一性,另外要注意可能存在尖括号被html转义的问题。
  5. 第四行为当前判分用的标准答案,其实无所谓
  6. 第五行为需要手动加分的答案,需要用心写
  7. 文档末尾需要有一个换行符(即一个空行)

跑的时候直接输入html所在目录和问题文档完整路径就可以用了。

希望明年PTA能做到一个单选有多个答案 求求你了

另外其实也可以处理程序填空题,只要把每一个空做成一个题目就好啦(<ゝω・)☆

Outcome

每个题目会单独生成一个.csv。里面包含了所有做到这一题的原始数据,以及一个简单的报告。

不喜欢csv的朋友可以用html代替

报告包括有多少人需要加分,以及这些人的学号和姓名。

其实也可以稍微改一改py让他们生成到一个.csv里,这样做汇总可能还更方便

pta-single-choice-question-patch's People

Contributors

zjubank avatar

Watchers

 avatar Yunzhe avatar

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.