街角_祝福

导航

上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页

2012年8月26日 #

VS2010中MFC连接Sql Server 2012方法

摘要: //初始化数据库连接::CoInitialize(NULL);连接数据库BOOL CLogin::ConnectDB(void){ HRESULT hr = NULL; try { hr = m_pConnection.CreateInstance("ADODB.Connection");///... 阅读全文

posted @ 2012-08-26 23:09 街角_祝福 阅读(782) 评论(5) 推荐(0)

2012年8月24日 #

查看QQ是否在线

摘要: 源码:import os,time,datetime,stringimport urllib2def chk_qq(qqnum): chkurl = 'http://wpa.qq.com/pa?p=1:'+`qqnum`+':1' #print(chkurl) a = urllib... 阅读全文

posted @ 2012-08-24 09:28 街角_祝福 阅读(252) 评论(0) 推荐(0)

2012年8月16日 #

project euler--10

摘要: Question:The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.Find the sum of all the primes below two million.Code:import mathdef IsPrime(n): if n... 阅读全文

posted @ 2012-08-16 00:13 街角_祝福 阅读(119) 评论(0) 推荐(0)

2012年8月15日 #

windows文件隐藏方法

摘要: 翻译+整理: By Bigworm 不当之处请指正这篇文章是根据H. Carvey的The Dark Side of NTFS (Microsoft’s Scarlet Letter)翻译的,可以自由转载,但请保持译者和来源以及文章的完整性. 简介:微软的平台不断在增加.公司用的服务器和桌面操作系... 阅读全文

posted @ 2012-08-15 22:35 街角_祝福 阅读(357) 评论(0) 推荐(0)

Problem 8--找连续的五个数的最大乘积

摘要: Question:import refrom operator import mula = '7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858... 阅读全文

posted @ 2012-08-15 16:50 街角_祝福 阅读(211) 评论(0) 推荐(0)

2012年8月14日 #

Fibonacci sequence

摘要: #################################################################################Question: ... 阅读全文

posted @ 2012-08-14 15:50 街角_祝福 阅读(152) 评论(0) 推荐(0)

2012年8月13日 #

pythonchallenge--10

摘要: a = '1'for i in xrange(30): pos = 0 tmp = '' str_len = len(a) while pos < str_len: count = 1 while pos+1<str_len and a[pos] ... 阅读全文

posted @ 2012-08-13 10:21 街角_祝福 阅读(142) 评论(0) 推荐(0)

pythonchallenge--9

摘要: 题目链接:http://www.pythonchallenge.com/pc/return/good.htmlimport Image,ImageDrawim = Image.new('RGB', (500,500))draw = ImageDraw.Draw(im)first=[146,399,1... 阅读全文

posted @ 2012-08-13 09:56 街角_祝福 阅读(135) 评论(0) 推荐(0)

pythonchallenge--8

摘要: 题目:http://www.pythonchallenge.com/pc/def/integrity.html点击蜜蜂发现可以分登录,而网页源码中恰好有两行,像是加密了的用户名和密码,又发现字符串的前缀是bz2的,所以用bz2解压试试,结果不小心就出来了。import bz2un = 'BZh91A... 阅读全文

posted @ 2012-08-13 09:39 街角_祝福 阅读(158) 评论(0) 推荐(0)

pythonchallenge--7

摘要: import Imageim = Image.open('oxygen.png')print ('image information:',im.format,im.size,im.mode)y_begin = 0while True: p = im.getpixel((0,y_begin)) i... 阅读全文

posted @ 2012-08-13 08:56 街角_祝福 阅读(153) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页