Beispiel #1
0
def check():
    """校验答题结果
    """
    data = request.json
    cal = Calc()
    result = cal.calc_score(data)
    return jsonify(result)
Beispiel #2
0
def test():
    """测试用函数
    """
    data = request.json
    cal = Calc()
    result = cal.calc_score(data)
    print(result)
    return jsonify(result)
from calc import Calc

c = Calc()
print(c.generate_output())

an_list = input()
c.input_answer(an_list.split(" "))

print(c.calc_score())