自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 Django 找不到模版报错“ django.template.exceptions.TemplateDoesNotExist: index.html“

Django 找不到模版报错" django.template.exceptions.TemplateDoesNotExist: index.html" 解决办法:在setting.py的TEMPLATES‘DIRS'[]加入模版路径 1 os.path.join(BASE_DIR,'templates') 1 2 3 4 5 6 7 8 9 10 11 12 .

2020-10-26 19:23:37 422 1

原创 git 下载很慢---淘宝镜像下载

淘宝镜像下载git地址: https://npm.taobao.org/mirrors/git-for-windows/

2020-10-05 21:42:40 289

原创 全是干货 python 爬虫实战 爬取今日头条街拍美女(json js解析map映射 类方法参数传递 pymongo使用)

import requests, re, json, pymongo, os from urllib.parse import urlencode #引入md5加密函数 from hashlib import md5 #引入多进程模块中的进程池 from multiprocessing import Pool #os: 用来操作本地文件或文件夹的模块 #json: 用来解析json数据的模块 #...

2018-06-23 10:49:48 446

原创 python 爬虫入门(二) 爬取简单网页并保存到本地

import refrom urllib.request import Request, urlopen#爬虫基本的三个步骤:1.向页面发送请求, 获取源代码(都是静态页面的代码);2, 利用正则匹配数据;3 .保存到数据库class DataParserTool(object):#类中方法cls    @classmethod    def  parser_data(cls, data):dat...

2018-06-22 20:03:24 6904

原创 python爬虫学习(一 认识基本的正则表达式)

import re#re:用于提取字符串内容的模块#1>创建正则对象; 2>匹配查找; 3>提取数据保存;string =""" <html> <div><a href='www.baidu.com'></a></div></di

2018-06-22 19:21:04 192

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除