![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
历史
菜鸟挣扎史
本人菜鸟一枚,大学毕业之际半推半就学习半年Java,菜的可以.紧紧记录悲惨的探索史,为后人参考,防止二次装壁!!!!
展开
-
for循环删除list里面的某项数据会出错
方法-倒着删除 正向删除会跳过删除项后面一个 l = [1, 2, 3, 3, 5, 6] for i in l: print(i) if i == 3: l.remove(i) print(l) 结果: 1 [1, 2, 3, 3, 5, 6] 2 [1, 2, 3, 3, 5, 6] 3 [1, 2, 3, 5, 6] 5 [1, 2, 3, 5, 6...原创 2019-12-06 09:41:29 · 219 阅读 · 3 评论 -
Python3-Spyder-urllib.request抓取搜haohuo平台信息-保存到csv
*Python3-Spyder-urllib.request抓取搜haohuo平台信息-保存到csv -- coding: utf-8 -- “”" Created on Sat Nov 9 10:15:32 2019 @author: Administrator “”" import urllib.request as request import lxml.html as html i...原创 2019-11-10 11:32:23 · 571 阅读 · 0 评论