街角_祝福

导航

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

2012年8月12日 #

pythonchallenge--5

摘要: 题目:http://www.pythonchallenge.com/pc/def/peak.html看到这个题目,标题"peak hell",下面写着"pronounce it",而且网页源码提示说这个“是不是很熟悉?”,我就在着急这个标题能读出个啥东西出来,由于python学的时间短,英语也不是很... 阅读全文

posted @ 2012-08-12 20:57 街角_祝福 阅读(129) 评论(0) 推荐(0)

pythonchallenge--4

摘要: 先贴代码吧。from urllib import *import reimport ossrc = urlopen(r'http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=12345')nexturl = Noneurl = r'... 阅读全文

posted @ 2012-08-12 15:36 街角_祝福 阅读(140) 评论(0) 推荐(0)

pythonchallenge--3

摘要: 题:http://www.pythonchallenge.com/pc/def/equality.html好吧,看完题目我只知道一个小写字母和两边的大保镖,然后就不知道该怎么下去了,我表示我还不习惯做这种题目。后来,看了别人的解释,才知道要从网页的源文件读取,坑爹坑到家了,我根本就没没往这方面想。然... 阅读全文

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

pythonchallenge--2

摘要: 代码:from urllib import *src = urlopen(r'http://www.pythonchallenge.com/pc/def/ocr.html')for i in range(37): #排除前面没用的37行 text.readline()a = []str1 = ... 阅读全文

posted @ 2012-08-12 01:10 街角_祝福 阅读(164) 评论(0) 推荐(0)

pythonchallenge--1

摘要: 先贴代码:import stringstr = r"g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq ... 阅读全文

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

2012年8月11日 #

pythonchallenge--0

摘要: 先贴代码吧!#!/usr/bin/env pythonimport ospreurl = r'http://www.pythonchallenge.com/pc/def/0.html'page = 2**38newurl = preurl.replace('0',str(page))os.start... 阅读全文

posted @ 2012-08-11 23:46 街角_祝福 阅读(130) 评论(0) 推荐(0)

2012年8月10日 #

递归排序

摘要: import randomdef qsort(L): if len(L)L[0]]))li = []for i in range(20): li.append(random.randrange(10,100))print(li)print(sorted(li))print(qsort(l... 阅读全文

posted @ 2012-08-10 14:26 街角_祝福 阅读(130) 评论(0) 推荐(0)

wxPython的简单使用

摘要: +看书。import wxdef load(event): file = open(filename.GetValue()) contents.SetValue(file.read()) file.close() def save(event): file = open... 阅读全文

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

2012年8月6日 #

获取句柄的方法总结(尤其是对于dll而言)

摘要: /*************************************************************测试获取文件所在的模块的方法,其中GetModuleHandle是获取exe的*句柄,而后两者还可以用来获取dll模块的句柄*By IT05*2012-8-6 16:24:27... 阅读全文

posted @ 2012-08-06 16:21 街角_祝福 阅读(475) 评论(0) 推荐(0)

2012年7月31日 #

入门知识

摘要: 1.代码块不像其他程序通过大括号来区分,Python的代码块是通过排版,空格缩进来区分的。(很不习惯)2.模块执行时,如果是导入的话,那么__name__的值为模块名,如果是被直接执行的话,那就会是__main__3.变量无需声明,可直接使用4.利用exec和eval可以直接执行镶嵌在程序内部的字符... 阅读全文

posted @ 2012-07-31 11:02 街角_祝福 阅读(118) 评论(0) 推荐(0)

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