悉野小楼

导航

10 2023 档案

C# redis操作(StackExchange.Redis )
摘要:参考:https://www.cnblogs.com/wzh2010/p/17205387.html 参考:https://www.runoob.com/redis/redis-keys.html 测试redis, 使用StackExchange.Redis 的api, 实现发布/订阅, 存放值, 阅读全文

posted @ 2023-10-30 10:52 悉野 阅读(297) 评论(0) 推荐(0) 编辑

python练习4 类相关操作
摘要:class MyClass: myNum = 0 #相当于类的变量 def __init__(self, name): self.name = name self.data = 0 MyClass.myNum += 1 #print("self:", self) #print("__class__: 阅读全文

posted @ 2023-10-14 20:06 悉野 阅读(5) 评论(0) 推荐(0) 编辑

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

posted @ 2023-10-13 15:42 悉野 阅读(212) 评论(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 悉野 阅读(43) 评论(0) 推荐(0) 编辑

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 悉野 阅读(738) 评论(0) 推荐(0) 编辑

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

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

点击右上角即可分享
微信分享提示