Coder Social home page Coder Social logo

get-random-name's Introduction

点名程序使用文档

https://dulljzblog.jz-home.top/2021/10/24/random-name-use/

特点

  1. 支持读取学生名单
  2. 支持加权点名
  3. 调用一言API

软件截图

功能

读取学生名单

软件运行时会自动对同目录下的 students.txt 进行读取并显示在列表框中。

要导入学生信息,只需修改 students.txt 即可。

每行一人,按学号编排,不可空行

以GB2312方式编码,否则出现乱码问题!

加权点名

加权算法:以10000为基数,乘以权重,得到该同学的姓名重复次数(n);其余(10000-n)个为随机生成的学生姓名;最后在10000个姓名中随机抽取

其中:学号为导入的学生顺序号

一言API

目前使用的一言API有:

https://v1.hitokoto.cn/?encode=text

https://api.btstu.cn/yan/api.php

https://api.muxiaoguo.cn/api/dujitang

本地导入一言库正在开发中!

一言内容与作者观点无关!

get-random-name's People

Contributors

dulljz 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.