• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
精彩一生
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 下一页
2018年11月8日
Scala字节数组转换为数字
摘要: 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 阅读全文
posted @ 2018-11-08 15:02 精彩一生 阅读(3646) 评论(0) 推荐(0)
2018年10月30日
Scala环境搭建及Intellij IDEA安装
摘要: 1.JDK官网地址:https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Scala是基于java之上,大量使用java的类库和变量,因此在使用Scala之前必须先安装 Java 检查 阅读全文
posted @ 2018-10-30 14:53 精彩一生 阅读(2213) 评论(0) 推荐(0)
2018年10月23日
C# 循环时,操作另外一个进程直到操作完成,循环继续执行
摘要: 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... 阅读全文
posted @ 2018-10-23 17:16 精彩一生 阅读(1803) 评论(0) 推荐(0)
2018年10月22日
C# 同步更新网盘和本地的文件夹及文件
摘要: 该程序是可以更新本地文件或更新网盘文件或者网盘和本地同步更新 下载地址: https://files.cnblogs.com/files/Wonderful-Life/UpdateFilesSync.rar 阅读全文
posted @ 2018-10-22 17:57 精彩一生 阅读(1596) 评论(0) 推荐(0)
C# 截取两个字符串中间的子字符串
摘要: /// <summary> /// 获取双引号间的字符串 /// </summary> /// <param name="str"></param> /// <returns></returns> internal string GetBetweenDoubleQuoteString(string 阅读全文
posted @ 2018-10-22 17:43 精彩一生 阅读(2315) 评论(0) 推荐(0)
C# 弹出确定、取消窗口
摘要: if (MessageBox.Show("确定要退出吗?", "", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.Cancel) {} MessageBoxButtons messButton = MessageBoxButtons.OKCancel; DialogResult... 阅读全文
posted @ 2018-10-22 17:42 精彩一生 阅读(4506) 评论(0) 推荐(0)
C# 弹出一个可输入字符串的窗口
摘要: string str=Interaction .InputBox ("请输入字符串","字符串","",100,100) 阅读全文
posted @ 2018-10-22 17:40 精彩一生 阅读(1821) 评论(0) 推荐(0)
C# 正则表达式提取字符串中括号里的值
摘要: version = Regex.Replace(str, @"(.*\()(.*)(\).*)", "$2"); //小括号() Regex rgx = new Regex(@"(?i)(?<=\[)(.*)(?=\])");//中括号[] string tmp = rgx.Match(CvoName).Value;//中括号[] string sheetData = Reg... 阅读全文
posted @ 2018-10-22 17:39 精彩一生 阅读(26341) 评论(0) 推荐(5)
C# List<T>排序
摘要: list<string>排序、list<int>排序 strList = strList.OrderBy(o => double.Parse(o)).ToList(); //数字 listFunc = listFunc.OrderBy(o => o).ToList(); //字母 list<clas 阅读全文
posted @ 2018-10-22 17:38 精彩一生 阅读(2217) 评论(0) 推荐(0)
C# 杀掉Windows中所有Excel进程
摘要: Process[] procs = Process.GetProcessesByName("excel"); foreach (Process pro in procs) { pro.Kill();//没有更好的方法,只有杀掉进程 } 阅读全文
posted @ 2018-10-22 17:33 精彩一生 阅读(1494) 评论(1) 推荐(0)
上一页 1 2 3 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3