Go 获取每个单词出现的次数 str:="howdoyoudo?howoldareyou?howlangtime?"arr:=make([]string,20,50)arr=strings.Fields(str)//排序sort.Sort(sort.StringSlice(arr))//定义mapmapstr:=make(map[string]int,20)count:=1for...
Go 第一天 packagemainimport"fmt"funcmain(){//打印乘法表i:=1j:=10r:=0for;i<j;i++{forii:=1;ii<=i;ii++{r=ii*ifmt.Printf("%d*%d=%d",ii,i,r)}...
easyui datagrid 隐藏显示某列 $('#DataGrid').datagrid('loadData', { total: 0, rows: [] }); $('#DataGrid').datagrid({ title: '', dataType: 'json', singleSelect: true, rownumbers: true, autoRowHeight: false, pagination: true, p...
C# 判断数组中的元素是否按规则连续 数组中的元素连续规则案例为:0,1,1,3,3,4,4实体类:public class DecimalTest { public decimal? OneS { get; set; } public decimal? OneE { get; set; } public decimal? TwoS { get; set; }...
win10 VS2012 wcf 无法debug运行 1、如果代码中存在app.manifest文件,将<requestedExecutionLevel level="asInvoker" uiAccess="false" />改为<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />2、不存在app.manifest文件,...
C# DateTime? Date 比较 private void butText_Click(object sender, EventArgs e) { string msg = "是"; List<DateCompare> list = new List<DateCompare>(); DateCompare ...
C# List Where 可直接 toList private void butText_Click(object sender, EventArgs e) { List<Stu> list = new List<Stu>(); Stu s1 = new Stu(); s1.Name = ""; s1.Id =...
jquery动态生成easyui控件并添加事件 <a href="#" class="easyui-linkbutton" onclick="alertVolumn()">体积计算</a><input id="RealVolumnTotal" class="easyui-numberbox" data-options="min:0,precision:2,required:true" style="width:...
jquery combobox 禁用与启用 $('#cmbTextID').combobox('disable');//禁用$('#cmbTextID').combobox('enable');//启用
python爬虫demo # coding:utf-8import requestsfrom bs4 import BeautifulSoupimport pandas# 反扒使用 http://www.user-agent.cn/ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0'# 需要抓...
C# 对象深度拷贝 /// <summary> /// 对象拷贝 /// </summary> /// <param name="obj">被复制对象</param> /// <returns>新对象</returns> private object ...
git学习笔记 下载windows版本的git(https://git-scm.com/download/win)安装设置(命令行)1、Git config --global user.name “zhangsan”2、Git config --global user.email “zhangsan@163.com”创建版本库1、Cd d:2、Cd firstdemo3、Pwd (...
jquery 验证手机号和电话号码 $.extend($.fn.validatebox.defaults.rules, { phoneRex: { validator: function (value) { var rex = /^1[3-9]+\d{9}$/; if (rex.test(value)) { ...
C# 正则去掉标点符号 var v = Regex.Replace(str, "[ \\[ \\] \\^ \\-_*×――(^)(^)$%~!@#$…&%¥—+=<>《》!!???::•`·、。,;,.;\"‘’“”-]", "");str:需要去掉标点符号的字符串...
Kettle7.1 无法连接sqlserver2014 Kettle7.1 连接sqlserver2014需要下载jtds.jar 将其放到lib目录下jtds.jar文件路径:https://sourceforge.net/projects/jtds/files/latest/download?source=files
二进制流做缩略图 MemoryStream ms = new MemoryStream(o.Bytes);//o.Bytes 二进制流 ms.Position = 0; Image img = Image.FromStream(ms); ms.Close();