有时候多个相同控件的事件若一一处理比较麻烦,而且影响代码美观,这时若在一个统一的方法里处理这些事件是个比较好的选择。 以winform上的三个button为例来说明我的处理方法。 1,将三个button的click事件绑定到一个事件处理方法上: this.button1.Click += new E ...
分类:
其他好文 时间:
2021-06-24 17:30:43
阅读次数:
0
case: decode: decode中的括号相当于case的end; ...
分类:
其他好文 时间:
2021-06-23 16:50:49
阅读次数:
0
import android.annotation.TargetApi; import android.content.Context; import android.content.res.TypedArray; import android.os.Build; import android.ut ...
分类:
移动开发 时间:
2021-06-22 17:57:53
阅读次数:
0
二分查找 对于一个有序的可迭代序列,查找一个元素时,每次都猜中间的那个数,这样一次可以排除掉一半的数据 Python版本 def main(ary, item): low = 0 high = len(ary) - 1 while low <= high: mid_index = (low+high ...
分类:
编程语言 时间:
2021-06-21 21:14:15
阅读次数:
0
#include<stdio.h> #include<stdlib.h> #define OK 1 #define Error 0 typedef int Status; //栈 typedef struct StackNode { int data; struct StackNode *next; ...
分类:
其他好文 时间:
2021-06-21 20:35:07
阅读次数:
0
问题 数据库大小写不敏感 库名,表名敏感: 配置参数lower_case_table_names 可选值 【0,1】0不敏感,1敏感 数据敏感: 排序规则: *_bin: 表示的是binary case sensitive collation,也就是说是区分大小写。 *_ci: case insen ...
分类:
数据库 时间:
2021-06-21 20:31:26
阅读次数:
0
脚本位置 cd /home/hadoop/bin 脚本内容 vi kafka.sh #输入以下内容 #!/bin/bash case $1 in "start" ){ for(( i = 1;i <= 3;i = $i +1));do echo hadoop0$i kafka $1 ssh hado ...
分类:
其他好文 时间:
2021-06-20 18:41:23
阅读次数:
0
查看是否区分大小写 show Variables like '%table_names' 查看lower_case_table_names的值,0代表区分,1代表不区分 修改方法 1.用ROOT登录,修改/etc/my.cnf 2.在[mysqld]下加入一行:lower_case_table_na ...
分类:
数据库 时间:
2021-06-17 17:06:18
阅读次数:
0
快速排序法 ①先从队尾开始向前扫描且当low < high时,如果a[high] > tmp,则high–,但如果a[high] < tmp,则将high的值赋值给low,即arr[low] = a[high],同时要转换数组扫描的方式,即需要从队首开始向队尾进行扫描了②同理,当从队首开始向队尾进行 ...
分类:
编程语言 时间:
2021-06-17 17:03:32
阅读次数:
0
##break和continue关键字的使用 ||使用范围|循环中使用的作用点(不通点)|相同点| |:-:|:-:|:-:|:-:| |break|switch-case中|结束当前循环|关键字后面不能声明执行语句| |break|循环结构中|结束当前循环|关键字后面不能声明执行语句| |cont ...
分类:
其他好文 时间:
2021-06-17 17:02:03
阅读次数:
0