
python
油腻时间
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
scrapy 采集常用的Pipeline(输出文件、图片下载)
scrapy 采集常用的pipeline,备份一下import jsonimport pymysqlfrom scrapy import Requestfrom twisted.enterprise import adbapifrom scrapy.exceptions import DropItemfrom scrapy.pipelines.images import ImagesPipelineclass YwnamePipeline:def process_item(self, ite转载 2020-09-28 16:56:39 · 737 阅读 · 0 评论 -
python 单行注释 多行注释 批量注释 中文注释
Python 中的注释有多种,有单行注释,多行注释,批量注释,中文注释也是常用的。python注释也有自己的规范,在文章中会介绍到。注释可以起到一个备注的作用,团队合作的时候,个人编写的代码经常会被多人调用,为了让别人能更容易理解代码的通途,使用注释是非常有效的。一、python单行注释符号(#)井号(#)常被用作单行注释符号,在代码中使用#时,它右边的任何数据都会被忽略,当做是注释。 print转载 2017-07-13 15:17:05 · 14078 阅读 · 0 评论 -
linux下配置python环境 django配置项目
linux下配置python环境 django创建helloworld项目 linux下配置python环境1、linux下安装python3a、 准备编译环境(环境如果不对的话,可能遇到各种问题,比如wget无法下载https链接的文件)yum groupinstall ‘Development Tools’ yum install zlib-devel bzip2-devel openssl转载 2017-07-18 21:37:49 · 2033 阅读 · 0 评论 -
python3 urllib.parse.urljoin()用法
>>> urljoin("http://www.chachabei.com/folder/currentpage.html", "anotherpage.html")'http://www.chachabei.com/folder/anotherpage.html'>>> urljoin("http://www.chachabei.com/folder/currentpage.html", "/原创 2017-08-08 13:55:55 · 28283 阅读 · 0 评论