上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 大众点评 阅读全文
posted @ 2018-10-02 16:48 Caionk 阅读(3167) 评论(0) 推荐(1) 编辑
摘要: 常见的状态码 简单的模拟登陆 保存cookie信息 使用cookie登录 阅读全文
posted @ 2018-10-02 05:56 Caionk 阅读(777) 评论(0) 推荐(0) 编辑
摘要: 模拟登陆代码 阅读全文
posted @ 2018-10-01 21:14 Caionk 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 一、概述 1、中间件的作用 在scrapy运行的整个过程中,对scrapy框架运行的某些步骤做一些适配自己项目的动作: 例如:scrapy内置的httpErrorMiddleware,可以在http请求出错时做一些处理。 2.中间件的使用方法 配置settings.py 二、中间件的分类 scrapy的中间件理论上又三种(Scduler Middlew... 阅读全文
posted @ 2018-09-26 19:14 Caionk 阅读(211) 评论(0) 推荐(0) 编辑
摘要: """Django settings for day01 project.Generated by 'django-admin startproject' using Django 1.11.7.For more information on this file, seehttps://docs.d 阅读全文
posted @ 2018-07-10 21:19 Caionk 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 打开pycharm: Tools->deployment->configuration 改掉设置就可以了 右键目录: deployment 然后可以创建app了: 命令: 阅读全文
posted @ 2018-07-10 20:03 Caionk 阅读(487) 评论(0) 推荐(0) 编辑
摘要: 第一步: 如果只是安装2.7版本的话,就没有报错,virtualenv就直接可以使用了,但是如果要指定python3的话,有些服务器就会报一下的错误 oserror:command /home/ubuntu/环境名/bin/python3 - setuptools pkg_resources pip 阅读全文
posted @ 2018-07-10 18:15 Caionk 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 命令行安装: pycharm安装: 第一步:找到setting》proiect》Project interpreter》点击右边的加号 第二步: 如下图 好了,这样就安装好了 新建Django项目 命令行创建: pycharm创建: 运行: 阅读全文
posted @ 2018-07-10 10:40 Caionk 阅读(135) 评论(0) 推荐(0) 编辑
摘要: #单继承 __Author__ = 'Cairo' zero, one, two, three, fous, five, six, seven, eight, nine = range(10) class Person(): def __init__(self,name,age,sex,money): self.name = name self.age... 阅读全文
posted @ 2018-05-31 15:37 Caionk 阅读(177) 评论(0) 推荐(0) 编辑
摘要: ''' 静态方法,和类方法实例 ''' import math class Pizza(): radius = 5 height = 10 def __init__(self,radius,height): self.radius = radius self.height = height print("创建实例") ... 阅读全文
posted @ 2018-05-30 16:25 Caionk 阅读(120) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页