悉野小楼

导航

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 31 下一页

2023年10月13日

winform窗口使用已经添加的图标

摘要: 1.项目属性窗口, 选择资源, 添加资源, 选择想要导入的ico图标, 设置好名字, 如my. 2.修改form窗口代码 public Form1() { InitializeComponent(); this.Icon = Resources.ResourceManager.GetObject(" 阅读全文

posted @ 2023-10-13 15:42 悉野 阅读(286) 评论(0) 推荐(0)

python学习笔记3 文件操作 遍历目录, 列出文件名

摘要: import os def listDir(curPath, pixLen): list = [] # print("当前路径:" + curPath) files = os.listdir(curPath) for path in files: fullPath = os.path.join(cu 阅读全文

posted @ 2023-10-13 11:13 悉野 阅读(60) 评论(0) 推荐(0)

2023年10月9日

C#使用utf-8读取ini

摘要: 参考: c#使用指定编码格式读写ini IniFile.cs using System.Runtime.InteropServices;class IniFile { public IniFile(string filePath) { m_FilePath = filePath; } private 阅读全文

posted @ 2023-10-09 19:08 悉野 阅读(998) 评论(0) 推荐(1)

c# json操作

摘要: 使用JavaScriptSerializer 需要在引用中添加System.Web.Extensions using System.Web.Script.Serialization; class UpdateInfo { public string packageUrl; public string 阅读全文

posted @ 2023-10-09 15:46 悉野 阅读(36) 评论(0) 推荐(0)

2023年9月27日

Python学习笔记2 常用类型list tuple dict set

摘要: def double(a): """两倍 处理 三个引号可以多行注释, 3个单引号也可以用来多行注释 """ return a * 2 a = double(5) print(a) if isinstance(a, int): #检测是否是某个类型 print("a是整数") print(True 阅读全文

posted @ 2023-09-27 16:29 悉野 阅读(26) 评论(0) 推荐(0)

2023年9月25日

Python学习笔记 定义 赋值 条件 循环

摘要: Python 3.12.0 文档 a = "好的, 测试字符tester" b = 17 c = 3 print(a[1:5]) #从第1(包含)个字符取到第5(不包含)个字符 print(a[:3]) #取到第3个字符(不含3) print(a[-5:-1]) #取倒数第5个到倒数第1个 prin 阅读全文

posted @ 2023-09-25 20:08 悉野 阅读(21) 评论(0) 推荐(0)

2023年9月15日

vector迭代删除元素

摘要: vector迭代删除元素, vector使用erase删除一个元素后, 数组移动, 原来的迭代器没用了, erase会返回新的iter, 指向当前元素后面的一个元素 #include <iostream> #include <vector> using namespace std; int main 阅读全文

posted @ 2023-09-15 18:12 悉野 阅读(46) 评论(0) 推荐(0)

2023年9月8日

归并排序(mege sort)

摘要: 参考: https://www.cnblogs.com/kite97/p/13441391.html #include <iostream> #include <vector> #include <algorithm> #include <random> #include <chrono> usin 阅读全文

posted @ 2023-09-08 13:42 悉野 阅读(24) 评论(0) 推荐(0)

2023年9月4日

cmd控制台中文乱码

摘要: 切换活动页编码 cmd控制台中执行: chcp 65001 C++代码中执行 system("chcp 65001"); 注:CHCP是一个计算机指令,能够显示或设置活动代码页编号。 代码页 描述 65001 UTF-8代码页 950繁体中文 936简体中文默认的GBK 437 MS-DOS美国英语 阅读全文

posted @ 2023-09-04 14:10 悉野 阅读(136) 评论(0) 推荐(0)

2023年8月30日

二叉堆例子

摘要: 参考: https://blog.csdn.net/lyqzzy/article/details/59849252 https://baike.baidu.com/item/二叉堆 二叉堆是一种特殊的堆,二叉堆是完全二元树(二叉树)或者是近似完全二元树(二叉树)。 二叉堆有两种:最大堆和最小堆。最大 阅读全文

posted @ 2023-08-30 19:20 悉野 阅读(26) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 31 下一页