上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页

2019年7月1日

阳光高考的问题

摘要: import requestsimport timefrom lxml import etreedef get_html(url): # 请求页面 try: headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWeb 阅读全文

posted @ 2019-07-01 14:27 袁佳佳 阅读(227) 评论(0) 推荐(0) 编辑

2019年6月28日

阳光高考爬取、、采用神奇的pandas

摘要: 阳光高考爬取、、采用神奇的pandas import pandas as pds #用pandas库去访问提取表格,可以访问 requests.get访问不到的数据、很神奇。 for i in range(0,2740,20): url = 'https://gaokao.chsi.com.cn/s 阅读全文

posted @ 2019-06-28 09:14 袁佳佳 阅读(299) 评论(0) 推荐(0) 编辑

2019年6月27日

2019/6/27号————检查

摘要: spider_Un.py import requestsimport timefrom lxml import etreedef get_html(url): # 请求页面 try: headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WO 阅读全文

posted @ 2019-06-27 18:54 袁佳佳 阅读(141) 评论(0) 推荐(0) 编辑

微信公众号爬取

摘要: #Weichat import scrapyimport urllib.parsefrom news_project.middlewares import Deal_Contentfrom news_project.items import NewsProjectItemfrom lxml impo 阅读全文

posted @ 2019-06-27 18:01 袁佳佳 阅读(322) 评论(0) 推荐(0) 编辑

2019年4月26日

黄色的五角星

摘要: import turtle as t t.color("yellow") #填黄色的线t.fillcolor("yellow") #填充黄色的、填进五星红旗t.begin_fill() #开始填充for i in range(5): t.forward(100) #走100 t.right(144) 阅读全文

posted @ 2019-04-26 17:33 袁佳佳 阅读(172) 评论(0) 推荐(0) 编辑

画旗

摘要: import turtle as t #动画速度t.speed(0)def star(s,color): #填充笔的颜色 t.pencolor(color) #充满什么颜色 t.fillcolor(color) #开始填充 t.begin_fill() for i in range(5): #移动s 阅读全文

posted @ 2019-04-26 17:04 袁佳佳 阅读(115) 评论(0) 推荐(0) 编辑

2019年3月12日

类视图

摘要: 函数视图和类视图 函数视图和类视图一、函数视图二、类视图 函数视图和类视图一、函数视图二、类视图 一、函数视图 函数视图便于理解 代码可读性与复用性都不佳 函数视图便于理解 代码可读性与复用性都不佳 二、类视图 代码可读性好 类视图相对于函数视图有更高的复用性 代码可读性好 类视图相对于函数视图有更 阅读全文

posted @ 2019-03-12 16:09 袁佳佳 阅读(307) 评论(0) 推荐(0) 编辑

django里面添加静态变量

摘要: 2、注意只有引用了 static {% load static %} 是引用static路径的意思 所以下面可以写成{% static "css/mystyle.css"%} 这样的形式 如果没有引用 {% load static %} 则需要写成 <link rel == "stylesheet" 阅读全文

posted @ 2019-03-12 09:55 袁佳佳 阅读(450) 评论(0) 推荐(0) 编辑

2019年2月20日

Ubuntu16.04安装&创建虚拟环境

摘要: https://blog.csdn.net/Emperor_CJ/article/details/78603026 mkvirtualenv -p /usr/bin/python3 project_dj 新建一个虚拟环境 进入虚拟环境: workon project_dj deactivate 退出 阅读全文

posted @ 2019-02-20 14:53 袁佳佳 阅读(135) 评论(0) 推荐(0) 编辑

2019年1月23日

制作dockerfile, 天眼查的镜像、并运行

摘要: 1、为了打包天眼查、docker容器、制作了下面的容器、 2、下面的文件有 3、Dockerfile 下面是这样写的 FROM python:3.6 #RUN apt-get update && apt-get install -y --no-install-recommends \# libsm6 阅读全文

posted @ 2019-01-23 15:17 袁佳佳 阅读(420) 评论(1) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页

导航