上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 待添加 阅读全文
posted @ 2019-06-20 09:03 pdun 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 一、文件的基本操作 文件的增删改查 touch命令 #touch命令 新建文件和修改文件或者文件的时间戳 #命令语法: touch 【选项】 【文件名或者目录名】 #命令选项: -a 只修改文件的access(访问)时间. -c 或—no-create 不创建不存在的文件。 -d 使用指定的日期时间 阅读全文
posted @ 2019-06-18 13:56 pdun 阅读(332) 评论(0) 推荐(0) 编辑
摘要: linux基本命令 命令格式 linux命令分类 Linux基本命令 man帮助命令 ls列出但钱目录内容命令 cal日历 bc计算器 uname显示当前操作系统和机器的信息 shell 阅读全文
posted @ 2019-06-18 08:37 pdun 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 一、介绍及安装 selenium最初是一个自动化测试工具,而爬虫中使用它主要是为了解决requests无法直接执行JavaScript代码的问题 selenium本质是通过驱动浏览器,完全模拟浏览器的操作,比如跳转、输入、点击、下拉等,来拿到网页渲染之后的结果,可支持多种浏览器 from selen 阅读全文
posted @ 2019-05-31 08:33 pdun 阅读(253) 评论(0) 推荐(0) 编辑
摘要: requests简介 基于get请求 import requests # https://www.baidu.com/s?wd=python url='https://www.baidu.com/s' kw=input(">>:") headers={ 'User-Agent': 'Mozilla/ 阅读全文
posted @ 2019-05-29 18:43 pdun 阅读(136) 评论(0) 推荐(0) 编辑
摘要: redis简介 Redis keys命令 1 DEL key 该命令用于在 key 存在时删除 key。 2 DUMP key 序列化给定 key ,并返回被序列化的值。 3 EXISTS key 检查给定 key 是否存在。 4 EXPIRE key seconds 为给定 key 设置过期时间, 阅读全文
posted @ 2019-05-28 20:44 pdun 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 爬虫在使用场景中的分类 robots.txt协议 君子协议 User-agent: Baiduspider Allow: /article Allow: /oshtml Allow: /ershou Allow: /$ Disallow: /product/ Disallow: / User-Age 阅读全文
posted @ 2019-05-27 17:33 pdun 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 一、vue环境配置及基本使用 vue环境搭建 #1) 安装node 官网下载安装包,傻瓜式安装:https://nodejs.org/zh-cn/ #2) 安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org #3 阅读全文
posted @ 2019-05-22 22:24 pdun 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 一、自己用for循环处理(太麻烦) 二、用django提供的序列化组件 三、rest-framework序列化之Serializer from django.db import models # Create your models here. class Book(models.Model): t 阅读全文
posted @ 2019-05-17 08:02 pdun 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 前言 一、什么是drf # class Student(): # name='pdun' # # def __init__(self,age): # self.age=age # # s1=Student(1) # print(s1.name) # print(s1.age) # print(s1. 阅读全文
posted @ 2019-05-15 22:54 pdun 阅读(140) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页