![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
Lin_QC
这个作者很懒,什么都没留下…
展开
-
python爬虫增加访问量
看着自己少得可怜的访问量,突然有一个想用爬虫刷访问量的想法,主要也是抱着尝试的心态,学习学习。第一版:网上借鉴了一下 以下代码运行在 python3import urllib.requestimport time# 使用build_opener()是为了让python程序模仿浏览器进行访问opener = urllib.request.build...原创 2019-11-30 11:12:18 · 58251 阅读 · 51 评论 -
python 基础操作总结
1、字符串常见操作切片mystr='helloworld'mystr=mystr[1:3]# print(mystr)formatmystr2 = 'welcome, dear {name}'mystr2 = mystr2.format(name = "haha")# print(mystr2)joinmystr3 = ['luo','bo','da','za']my...转载 2019-11-14 11:03:12 · 282 阅读 · 0 评论