搜索到与相关的文章
Python

简单的Python抓taobao图片爬虫

写了一个抓taobao图片的爬虫,全是用if,for,while写的,比较简陋,入门作品。从网页http://mm.taobao.com/json/request_top_list.htm?type=0&page=中提取taobao模特的照片。复制代码代码如下:#-*-coding:cp936-*-importurllib2importurllibmmurl="http://mm.taobao.com/json/request_top_list.htm?t

系统 2019-09-27 17:54:58 2413

Python

python字符串拼接效率比较

直接看代码方式一:importtimestart_time=time.perf_counter()s=''forninrange(0,1000):s+=str(n)end_time=time.perf_counter()print('Timeelapse:{}'.format(end_time-start_time))方式二:importtimestart_time=time.perf_counter()s=[]forninrange(0,1000):s.

系统 2019-09-27 17:51:45 2413

编程技术

JSF: 动态生成的DataTable, 固定表头, 固定行