上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 77 下一页
摘要: for i in range(100,-1,-1): print "%s\n"%i;importospath ='D:\\Test'forroot, dirs, files inos.walk(path):print("Root = ", root, "dirs = ", dirs, "fil... 阅读全文
posted @ 2015-02-25 17:51 小毛驴 阅读(211) 评论(0) 推荐(0) 编辑
摘要: import osa = os.walk('.') for i in a: print(i) 阅读全文
posted @ 2015-02-25 17:22 小毛驴 阅读(116) 评论(0) 推荐(0) 编辑
摘要: TimeZone.CurrentTimeZone.ToLocalTime /// /// 时间戳转为C#格式时间 /// /// Unix时间戳格式 /// C#格式时间 public static DateTime ... 阅读全文
posted @ 2015-02-25 08:56 小毛驴 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 11、压力测试与负载测试? 负载测试:通常运行时间比较短,在系统上逐渐加压,直到性能指标达到饱和状态(比如相应时间超出预期要求、系统资源占用率居高不下等),从而验证系统预期的性能目标、相应时间等。 压力测试:长时间运行,逐渐增加超负荷(并发、循环、多用户等),直到系统产生异常以及对异常的处理能... 阅读全文
posted @ 2015-02-22 10:21 小毛驴 阅读(357) 评论(0) 推荐(0) 编辑
摘要: import urllib.requesturl="http://mm.taobao.com/json/request_top_list.htm?type=0&page=1"up=urllib.request.urlopen(url)#打开目标页面,存入变量upcont=up.read()#从up中... 阅读全文
posted @ 2015-02-16 09:58 小毛驴 阅读(280) 评论(0) 推荐(0) 编辑
摘要: sc query WCService | find /i "state"if %errorlevel% == 0 ( net start "WCService") else ( C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe... 阅读全文
posted @ 2015-02-07 15:24 小毛驴 阅读(157) 评论(0) 推荐(0) 编辑
摘要: import reimport urllib.request def getHtml(url): page = urllib.request.urlopen(url) html = page.read() return str(html)def getImg(html): r... 阅读全文
posted @ 2015-02-03 21:56 小毛驴 阅读(223) 评论(0) 推荐(0) 编辑
摘要: importurllib.requestproxy_support=urllib.request.ProxyHandler({})opener=urllib.request.build_opener(proxy_support)urllib.request.install_opener(opener... 阅读全文
posted @ 2015-02-03 14:25 小毛驴 阅读(833) 评论(0) 推荐(0) 编辑
摘要: import urllib.requestimport http.cookiejarfrom urllib.error import URLError,HTTPError import urllib.request import urllib.parse url='http://www.bai... 阅读全文
posted @ 2015-02-03 11:22 小毛驴 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 下面这个例子是我写了个文件替换的小程序。替换所有.html文件里的图片的路径import osimport ret = re.compile(r'\/?static\/|\/?media\/') #re.compiletemplate = '/home/laowangpython/'for root... 阅读全文
posted @ 2015-02-03 11:02 小毛驴 阅读(122) 评论(0) 推荐(0) 编辑
上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 77 下一页