Code Monkey home page Code Monkey logo

foobar's Introduction

foobar

一些为了方便自己工作开发的python工具

绩效考核工具(jxkh)

配置文件一共分为两个json文件

  • config文件如下:

{ "contentfile":"2018-4-5.jxkh", "version1":{ "Rank":{ "S":90, "A":80, "B":70, "C":50 }, "KPIWeight":[0.25,0.25,0.25,0.25], "KQ":10, "AW":10 }, "version2":{

"Rank":{ "S":90, "A":80, "B":70, "C":50 }, "KPIWeight":[0.25,0.25,0.25,0.25], "KQ":10, "AW":10 } }

  • content文件如下:

{ "version":"version1", "content": [ {"Rank": [["C", "A", "B", "C"], ["S", "A", "B", "B"], ["B", "A", "B", "C"], ["B", "C", "B", "B"]], "AW": 5, "name": "张三", "KQ": 0}, {"Rank": [["B", "A", "B", "C"], ["S", "A", "B", "B"], ["B", "A", "B", "C"], ["B", "C", "B", "B"]], "AW": 6.0, "name": "李四", "KQ": 5}, {"Rank": [["S", "A", "B", "C"], ["S", "A", "B", "B"], ["B", "A", "B", "C"], ["B", "C", "B", "B"]], "AW": 4, "name": "王二", "KQ": 3}, {"Rank": [["A", "A", "B", "C"], ["S", "A", "B", "B"], ["B", "A", "B", "C"], ["B", "C", "B", "B"]], "AW": 7, "name": "赵四", "KQ": 10} ] }

输出结果:

  • [('赵四', 73.0), ('李四', 66.5), ('王二', 63.5), ('张三', 59.5)]

foobar's People

Contributors

wangxuebin avatar

Watchers

 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.