Code Monkey home page Code Monkey logo

gaokao's Introduction

gaokao

高考志愿参考系统

根据近三年的高考分数段统计表和某学校分专业分数线统计表,计算报考各专业的录取概率。

使用方法

  1. 用自己省份的数据替换data/目录中的数据。
  2. 修改config.py的内容。
  3. 运行gaokao.py
$ cat config.py 
# -*- coding: utf_8 -*-

config={
    'region':'云南',
    'subject':'理科',
    'firstLine':500,
    'score':588,
    'rank':4727
}
$ python3 gaokao.py 
{
    "省份": "云南",
    "科目": "理科",
    "你的分数": 588,
    "你的排名": 4727,
    "对应往年成绩": {
        "2016": "609~605",
        "2015": "589~585",
        "2014": "604~600"
    },
    "对应往年排名": {
        "2016": "4600~5325",
        "2015": "4346~4914",
        "2014": "4498~5169"
    },
    "2016录取情况": {
        "通信工程": 0,
        "信息工程": 0,
        "电子信息工程": 0,
        "智能科学与技术": 0,
        "计算机科学与技术": 0,
        "机械设计制造及其自动化": 0,
        "自动化": 0,
        "电气工程及其自动化": 0,
        "测控技术与仪器": 1,
        "光电信息科学与工程": 0,
        "电子信息科学与技术": 0,
        "管理科学与工程类": 1,
        "软件工程": 0,
        "微电子科学与工程": 1,
        "集成电路设计与集成系统": 1,
        "材料科学与工程": 1,
        "应用化学": 1,
        "信息安全": 0
    },
    "2015录取情况": {
        "通信工程": 0,
        "信息工程": 0,
        "电子信息工程": 0,
        "信息对抗技术": 1,
        "智能科学与技术": 0,
        "电磁场与无线技术": 1,
        "计算机科学与技术": 1,
        "物联网工程": 0,
        "机械设计制造及其自动化": 0,
        "自动化": 1,
        "电气工程及其自动化": 0,
        "测控技术与仪器": 1,
        "电子科学与技术": 0,
        "光电信息科学与工程": 1,
        "电子信息科学与技术": 1,
        "管理科学与工程类": 1,
        "统计学": 1,
        "软件工程": 1,
        "微电子科学与工程": 1,
        "集成电路设计与集成系统": 1,
        "材料科学与工程": 1,
        "应用化学": 1,
        "信息安全": 1
    },
    "2014录取情况": {
        "通信工程": 0,
        "信息工程": 1,
        "信息安全": 1,
        "电子信息工程": 1,
        "信息对抗技术": 1,
        "电磁场与无线技术": 1,
        "智能科学与技术": 1,
        "计算机科学与技术": 1,
        "物联网工程": 0,
        "机械设计制造及其自动化": 1,
        "自动化": 1,
        "电气工程及其自动化": 0,
        "测控技术与仪器": 1,
        "电子科学与技术": 0,
        "光电信息科学与工程": 1,
        "电子信息科学与技术": 1,
        "工业工程": 1,
        "英语": 1,
        "软件工程": 1,
        "微电子科学与工程": 1,
        "集成电路设计与集成系统": 1,
        "材料科学与工程": 1,
        "应用化学": 1
    },
    "2017录取预测": {
        "管理科学与工程类": 1.0,
        "通信工程": 0,
        "统计学": 1,
        "机械设计制造及其自动化": 0.3,
        "自动化": 0.6,
        "电磁场与无线技术": 1.0,
        "信息安全": 0.6,
        "软件工程": 0.6,
        "电气工程及其自动化": 0,
        "电子科学与技术": 0,
        "材料科学与工程": 1.0,
        "电子信息工程": 0.3,
        "信息工程": 0.3,
        "集成电路设计与集成系统": 1.0,
        "信息对抗技术": 1.0,
        "电子信息科学与技术": 0.6,
        "工业工程": 1,
        "应用化学": 1.0,
        "光电信息科学与工程": 0.6,
        "智能科学与技术": 0.3,
        "测控技术与仪器": 1.0,
        "英语": 1,
        "计算机科学与技术": 0.6,
        "物联网工程": 0,
        "微电子科学与工程": 1.0
    }
}

LICENSE

MIT LICENSE.
COPYRIGHT (C) 2017 firmy

gaokao's People

Contributors

firmianay avatar

Watchers

James Cloos 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.