WNDPROC g_pOldProc = NULL;LRESULT CALLBACK NewWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam){ switch (message) { case WM_ACTIVATE: pri ...
分类:
其他好文 时间:
2019-08-28 18:32:02
阅读次数:
101
输出 System.out.println() 可以向屏幕输出一些内容。 println是print line的缩写,表示输出并换行。如果输出后不想换行,可以用print() System.out.print("A,"); System.out.print("B,"); System.out.pri... ...
分类:
其他好文 时间:
2019-08-27 13:13:04
阅读次数:
83
mysql -u root -p use mysql; GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456'; 这里的123456为你给新增权限用户设置的密码,%代表所有主机,也可以具体到你的主机ip地址 flush pri ...
分类:
数据库 时间:
2019-08-20 12:45:29
阅读次数:
102
1.使用while循环输入1 2 3 4 5 6 8 9 10 分析:此命题可以翻译为将1-10的所有整数按升序排列,当要输出“7”时将其跳过。 思路:因此整体的思路应当是先铺好1-10的整数升序数列,然后对7进行特殊处理。 [第一步]写1-10的整数升序: n=1 while n <=10 pri ...
分类:
编程语言 时间:
2019-08-19 19:13:49
阅读次数:
98
1. 三次登录验证 完成?户登录验证 要求: 1. 系统?动?成4位随机数. 作为登录验证码. 直接?就好. 这里不用纠结 from random import randint num = 0 verify_code = "" while num 0: pri... ...
分类:
其他好文 时间:
2019-08-17 19:49:17
阅读次数:
88
C#WinForm无边框窗体移动方法、模仿鼠标单击标题栏移动窗体位置 这里介绍俩种办法 方法一:直接通过修改窗体位置从而达到移动窗体的效果 方法二:直接伪装发送单击任务栏消息,让应用程序误以为单击任务栏从而移动窗体 新建窗体用于测试 方法一 1.定义一个位置信息Point用于存储鼠标位置 1 pri ...
分类:
移动开发 时间:
2019-07-16 18:54:43
阅读次数:
163
1. findall() 函数 详解见:https://www.cnblogs.com/nbk-zyc/p/11113328.html 1 import re 2 3 ret = re.findall('www.(baidu|oldboy).com', 'www.oldboy.com') 4 pri ...
分类:
其他好文 时间:
2019-07-02 09:33:11
阅读次数:
103
实验代码: package 实验十四;import javax.swing.JFrame;import javax.swing.JLabel;import javax.swing.JPanel; public class SwitchTest { private JFrame jFrame; pri ...
分类:
编程语言 时间:
2019-06-30 12:38:44
阅读次数:
115
*. zip(), dict() def demo_zip_dict(): keys = ['a', 'b', 'c'] values = [1, 2, 3] entrys = zip(keys, values) print(entrys) dictionary = dict(entrys) pri... ...
分类:
其他好文 时间:
2019-06-19 22:05:07
阅读次数:
134
Python 求两个文本文件以行为单位的交集 并集 差集 s1 = set(open('a.txt','r').readlines()) s2 = set(open('b.txt','r').readlines()) print 'ins: %s'%(s1.intersection(s2)) pri ...
分类:
编程语言 时间:
2019-06-17 17:15:41
阅读次数:
132