摘要: pingbao.vbs Const PICNO=60 Const Version = "******" Const FilePath = "C:\Downloads\quiz20220223\" '任意指定路径 Set Wshell=WScript.CreateObject("WScript.She 阅读全文
posted @ 2025-07-09 13:13 梓涵VV 阅读(14) 评论(0) 推荐(0)
摘要: 两种方式: 一, 现成reg文件 1, 将如下内容复制到一个新建的TXT文件中,另存为win11.reg文件, 然后选择用注册表编辑器打开. win11.reg Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Clas 阅读全文
posted @ 2025-06-03 15:46 梓涵VV 阅读(177) 评论(0) 推荐(0)
摘要: 实现了一个基于回溯法的数独求解器,并且使用了位掩码来优化数字的使用情况检查,这样的实现可以提高效率。不过,存在一些可以进一步优化或改进的地方,特别是在 backtrack 函数中如何进行回溯以及使用最小剩余值 (MRV) 策略选择空单元格时的细节。 1. 初始化状态 1 row_used = [0] 阅读全文
posted @ 2024-12-25 16:47 梓涵VV 阅读(209) 评论(0) 推荐(0)
摘要: ' Declare the necessary Windows API functions Private Declare PtrSafe Function CreateToolhelp32Snapshot Lib "kernel32" ( _ ByVal dwFlags As Long, _ By 阅读全文
posted @ 2024-06-12 14:29 梓涵VV 阅读(151) 评论(0) 推荐(0)
摘要: import random MAX_SIZE = 5 def print_board(board): # 打印棋盘,并加上行号和列号 print("\t" + "\t".join(str(i) for i in range(1, MAX_SIZE + 1))) for i in range(MAX_ 阅读全文
posted @ 2024-05-10 17:24 梓涵VV 阅读(75) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> typedef struct Node{ int value; struct Node *pNext; } Node; /* 打印链表 */void show_data(Node *he 阅读全文
posted @ 2023-06-19 10:28 梓涵VV 阅读(12) 评论(0) 推荐(0)
摘要: 1. 使用set(),是一个无序不重复元素集(重新排序) inList = [55,21,0,3,17,17,5] outList = list(set(inList)) print (outList) 结果: [0,3,5,17,21,55] 2. 使用keys()方法(重新排序) inList 阅读全文
posted @ 2022-08-06 20:00 梓涵VV 阅读(56) 评论(0) 推荐(0)
摘要: 1 static bool OutDeviceMountStateChk() 2 { 3 FILE *fstream = NULL; 4 char infotime[30]; 5 6 char errMessage[48]; 7 int nRet = -1; 8 9 struct mntent *e 阅读全文
posted @ 2022-08-03 22:10 梓涵VV 阅读(441) 评论(0) 推荐(0)
摘要: 1 static eRESULT GetHDDStatus() 2 { 3 FILE *fstream = NULL; 4 char command_str[50]; 5 char buff[256]; 6 char strtmp[256]; 7 char find_Status[50] = "St 阅读全文
posted @ 2022-08-03 22:01 梓涵VV 阅读(78) 评论(0) 推荐(0)
摘要: 1 @echo off 2 setlocal enabledelayedexpansion 3 4 set INIFILE=%1 5 6 rem 7 rem ini内容解析 8 rem 9 for /f "delims=" %%i in (%INIFILE%) do ( 10 set rowStr= 阅读全文
posted @ 2022-07-27 15:45 梓涵VV 阅读(171) 评论(0) 推荐(0)