vc++基础班[11]---对话框程序响应组合按键 ------------------------------------------ Begin ---------------------------------------- ①、利用 GetKeyState 函数获得某一按键的按下、弹起状态; #define IsKeyPressed(nVirtKey)  ((GetKeyState(nVirtKey) & (1<<(sizeof(SHORT)*8-1))) != 0) #define IsKeyToggled(nVirtKey)  ((G...

阅读全文>>

很经典的一段代码.不要正则表达式,  早上二次开发工单系统,用到的,很实用 $url="http://www.gyarmy.com/post-21.html"; var a = document.createElement('a'); a.href=$url; $geturl = a.host; console.log($geturl); 测试可用!

阅读全文>>

vc++基础班[10]---对话框响应鼠标及键盘消息 ------------------------------------------ Begin ---------------------------------------- ①、各种各样的常用鼠标消息: WM_MOUSEMOVE   鼠标移动位置 WM_LBUTTONDOWN  鼠标左键按下 WM_LBUTTONUP   鼠标左键弹起 WM_LBUTTONDBLCLK 鼠标左键双击 WM_RBUTTONDOWN  ...

阅读全文>>

项目需求,需要对thinkphp记性修改 使用Mail.class.zip   这个插件,直接点击下载。  后面有些注意事项,请各位看官注意 使用方法: 1\ Mail.class.zip 的放置位置 位置: ThinkPHP\Library\Org\ 2\ 环境配置 A: 开启socket:在php.ini中取消extension=php_sockets.dll前面的分号。 B:...

阅读全文>>

错误描述: /opt/ActivePython-2.7/lib/python2.7/site-packages/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). This usually isn't a problem, but if you run this code on another system, or in a different virtua...

阅读全文>>

#coding:utf8 import requests,re,sys #防止 编码问题 reload(sys) sys.setdefaultencoding('utf8') for i in range(1,400000): res = requests.get('http://www.yangtuobaobei.cn/?'+str(i)) if res.status_code==200: userFile = open('user.txt','a') #多行匹配,拿到用户名 user = re....

阅读全文>>

#coding:utf8 import zipfile,os def backupToZip(folder):     folder = os.path.abspath(folder)     number = 1     while True:         zipFileName = os.path.basename(folder)+"_"+str(number)+".zip"         if not os.path.exis...

阅读全文>>

#coding:utf8 import os for muluName,zimuluName,fileName in os.walk("H:\\LK"):     for zimulu in zimuluName:         print "目录:"+muluName+" 中的子目录:"+zimulu     for file in fileName:         print "目录:"+muluName+" 中的文件 :"+file print...

阅读全文>>

------------------------------------------ Begin ---------------------------------------------- 定时器(Timer)在 Windows 的程序设计中很多地方都能用到,他的主要用途是按程序的设定间隔时间,间歇性的产生 WM_TIMER 消息,发送到指定窗口 之后,在窗口中对 WM_TIMER 消息进行处理,完成指定的任务! ①、定时器函数的讲解: ◆ 定时器启动函数:SetTimer ◆ 定时器响应函数:OnTimer ◆ 定时器结束函数:KillTimer 时间间隔范围:USE...

阅读全文>>

保存密码到 password中, 输入对应的参数 ,可以直接拿到密码 #coding:utf-8 passwords = { 'email':'asdasxxasdfadasdf', 'blog':'azzxcvzcvzaaa', 'baidu':'zcvasdfadfaf', 'youku':'azcaaszxcvzcvzv' } import sys if(len(sys.argv)<2): print "参数个数不得少于2个".decode("utf-8").encode("GBK") sys....

阅读全文>>

#coding:utf8 people={"baidu":{"apple":10,"orange":20}, "sohu":{"banner":5,"apple":13}, "youku":{"orange":3,"cup":4}, "qq":{"pies":3,"apple":90} } def getNumber(website,item): numBrought=0 for k,v in website.items(): numBrought = numBrought...

阅读全文>>

================================ ①、控件绑定变量的删除; ②、MFC 与 SDK API 中同名函数的问题: ◆ 回到作用域内; ◆ 获取窗口句柄; void CMFC0830Dlg::showMsg() { //AfxMessageBox(_T("fuck")); SetDlgItemText(IDC_EDIT_MAIN, _T("111111")); } void showMyMsg() { CWnd* p_wnd = AfxGetMainWnd(); HWND m_hwnd = p_wnd-&g...

阅读全文>>