假设监考员设置中的,监考科目和监考教室支持设置多个,以/作为分隔。
缺少一些前置逻辑校验,若数据本身逻辑有问题,则可能会导致无解。
| /* | |
| * 解析GUID 获取VID和PID | |
| * | |
| * GUID: 030017173807000021a2000000000000 | |
| * VID: 0738 | |
| * PID: A221 | |
| * 返回值: (VID, PID) 大写 | |
| */ | |
| pub fn parse_guid(guid_str: &str) -> (String, String) { | |
| let vid = format!("{}{}", &guid_str[10..12], &guid_str[8..10]); |
| import random | |
| from datetime import datetime | |
| import os | |
| import pywintypes | |
| import win32file | |
| def get_all_files(path_dir: str): | |
| """ |
| /** | |
| * val modbusVersion = "1.2.2" | |
| * implementation("com.digitalpetri.modbus:modbus-master-tcp:${modbusVersion}") | |
| * implementation("com.digitalpetri.modbus:modbus-slave-tcp:${modbusVersion}") | |
| */ | |
| /** | |
| * @author lpe234 | |
| * @since 2024/6/20 17:19 | |
| */ |
| data class EvalDTO(var script: String) |
| # -*- coding: UTF-8 -*- | |
| __author__ = 'lpe234' | |
| import logging as log | |
| import re | |
| import time | |
| import requests as r | |
| import qrcode_terminal |
| /** | |
| * 格式化租借时间 | |
| * xx天xx时xx分 | |
| * 1. 最小单位为分,最大单位为天 | |
| * 2. xx为0时,不显示相应时间 | |
| * 3. 最小单位分 | |
| * | |
| * @return | |
| */ | |
| @JsonGetter |
| // 💕核心科技~ | |
| dictEntry *dictFind(dict *d, const void *key) | |
| { | |
| dictEntry *he; | |
| unsigned int h, idx, table; | |
| if (d->ht[0].size == 0) return NULL; /* We don't have a table at all */ | |
| if (dictIsRehashing(d)) _dictRehashStep(d); | |
| h = dictHashKey(d, key); | |
| for (table = 0; table <= 1; table++) { |
| # -*- coding: UTF-8 -*- | |
| __author__ = 'lpe234' | |
| """ | |
| config module | |
| """ | |