上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 21 下一页
摘要: class Person { private static Dictionary<string, string> dict; static Person() { dict = new Dictionary<string, string>(); dict.Add("a", "tom"); dict.A 阅读全文
posted @ 2021-08-23 12:11 trykle 阅读(170) 评论(0) 推荐(0)
摘要: ``` // 可空类型 int? a = null; // ?? 空合并运算符,哪个不为空就取哪个结果 string a = null; string b = null; string c = null; string d = a ?? b ?? c ?? "111"; //Console.Writ 阅读全文
posted @ 2021-08-23 11:46 trykle 阅读(97) 评论(0) 推荐(0)
摘要: str = 'abc你好' res = "" for i=1, string.len(str) do local b = string.byte(string.sub(str,i,i)) res = res .. b .. "," end print(res) var bytes = new byt 阅读全文
posted @ 2021-06-28 18:34 trykle 阅读(433) 评论(0) 推荐(0)
摘要: 创建对象并执行方法,传入一个动态对象作为参数 static object DynamicCreateAssembly(dynamic inputObject) { Microsoft.CSharp.CSharpCodeProvider cSharpCodeProvider = new Microso 阅读全文
posted @ 2021-06-12 16:18 trykle 阅读(632) 评论(0) 推荐(0)
摘要: 注释 --单行 --[ 跨行 ]-- 变量 a = 1 --全局变量 local a = 2 --局部变量 --块级作用域 local a = 1 local b = 2 if a == 1 then local b = 3 end print(b) //2 字符串 '111' "222" [[33 阅读全文
posted @ 2021-06-09 09:00 trykle 阅读(142) 评论(0) 推荐(0)
摘要: 基于以下基本需求: 自动补全 关键字高亮 发送其他exe执行 notepad++ 优点: 打开快 多编码支持 缺点: 自动补全不能忽略大小写(测试7.9.5,我拉了源代码编译了一下居然可以,但依然不完美) 题外话: npp作为一个文本查看、搜索工具具有无可比拟的性能速度优势 作为替代我尝试过: no 阅读全文
posted @ 2021-05-11 10:10 trykle 阅读(508) 评论(0) 推荐(0)
摘要: 这个玩意在.net 4.7的时候有,切换到4.0就没有了 把这个目录下的C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.7.2的zh-Hans目录放到其他版本的.NET文件夹里面就可以了 阅读全文
posted @ 2021-05-04 20:26 trykle 阅读(102) 评论(0) 推荐(0)
摘要: struct testDef ( info = "no info", fn addInfo txt = ( append this.info txt ) ) fn getInfo = ( t = testDef() t.addInfo "add some info contnet." t2 = te 阅读全文
posted @ 2021-05-02 15:30 trykle 阅读(144) 评论(0) 推荐(0)
摘要: nan: Not A Number. 不是一个数字 ind: Indeterminate Number. 不确定的数字 inf: Infinity. 无穷大 den: Denormalized. It is also known as Subnormal. 非规范化 https://www.code 阅读全文
posted @ 2021-04-11 14:36 trykle 阅读(82) 评论(0) 推荐(0)
摘要: https://www.codeforests.com/2020/07/17/pack-python-program-into-exe-file/ https://pypi.org/project/auto-py-to-exe/ auto-py-to-exe 后来换了python3.7 网上搜了个同 阅读全文
posted @ 2021-04-05 16:18 trykle 阅读(103) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 21 下一页