摘要:
1. 2个字节数组转换为整数 1 def bytes2uint8(_bytes: Array[Byte], _offset: Int): Int = { 2 val b0 = _bytes(_offset) & 0xff 3 return b0 4 } 5 6 def bytes2sint8(_by 阅读全文
摘要:
1.JDK官网地址:https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Scala是基于java之上,大量使用java的类库和变量,因此在使用Scala之前必须先安装 Java 检查 阅读全文
摘要:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading; using System.Thread... 阅读全文
摘要:
该程序是可以更新本地文件或更新网盘文件或者网盘和本地同步更新 下载地址: https://files.cnblogs.com/files/Wonderful-Life/UpdateFilesSync.rar 阅读全文
摘要:
/// <summary> /// 获取双引号间的字符串 /// </summary> /// <param name="str"></param> /// <returns></returns> internal string GetBetweenDoubleQuoteString(string 阅读全文
摘要:
if (MessageBox.Show("确定要退出吗?", "", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.Cancel) {} MessageBoxButtons messButton = MessageBoxButtons.OKCancel; DialogResult... 阅读全文
摘要:
string str=Interaction .InputBox ("请输入字符串","字符串","",100,100) 阅读全文
摘要:
version = Regex.Replace(str, @"(.*\()(.*)(\).*)", "$2"); //小括号() Regex rgx = new Regex(@"(?i)(?<=\[)(.*)(?=\])");//中括号[] string tmp = rgx.Match(CvoName).Value;//中括号[] string sheetData = Reg... 阅读全文
摘要:
list<string>排序、list<int>排序 strList = strList.OrderBy(o => double.Parse(o)).ToList(); //数字 listFunc = listFunc.OrderBy(o => o).ToList(); //字母 list<clas 阅读全文
摘要:
Process[] procs = Process.GetProcessesByName("excel"); foreach (Process pro in procs) { pro.Kill();//没有更好的方法,只有杀掉进程 } 阅读全文