跳转底部
上一页 1 ··· 3 4 5 6 7 8 下一页

2018年9月6日

django 图书管理系统

摘要: 改变ip和端口 1.命令行更改 python manage.py runserver # 127.0.0.1:8000 python manage.py runserver 80 # 127.0.0.1:80 python manage.py runserver 0.0.0.0:80 # 0.0.0 阅读全文

posted @ 2018-09-06 20:55 afly666 阅读(416) 评论(0) 推荐(0) 编辑

scrapy

摘要: scrapy框架 具有高性能异步下载,队列,分布式,解析,持久化等具有很强通用性的项目模板 安装 a. pip3 install wheel b. 下载twisted http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted c. 进入下载目录,执行 pip3 install Twisted-17.1.0-cp36-cp36m-... 阅读全文

posted @ 2018-09-06 20:17 afly666 阅读(190) 评论(0) 推荐(0) 编辑

2018年9月5日

数据库

摘要: 阅读全文

posted @ 2018-09-05 22:34 afly666 阅读(87) 评论(0) 推荐(0) 编辑

2018年9月4日

django

摘要: http的请求格式和响应格式 对应着 一个请求的完整的流程: 1. web服务要启动,等待连接; 2. 在浏览器地址栏中输入URL,回车。向服务器发送一个遵循HTTP协议的GET请求。 3. 服务器收到请求,按照HTTP协议去解析请求。拿到到URL,找到对应的函数。 4. 函数中处理HTML代码,进 阅读全文

posted @ 2018-09-04 21:04 afly666 阅读(203) 评论(0) 推荐(0) 编辑

2018年8月17日

爬虫

摘要: beautifulSoup模块的基本用法 单进程和并发爬取网站比较 requests模块 beautiful soup 基本用法 爬虫使用并发提高效率 1.同步调用,不使用并发 2.使用多进程(线程) 3.使用进程池(线程池) 4.使用asyncio模块,可以帮我们检测IO(只能是网络IO),实现应 阅读全文

posted @ 2018-08-17 15:18 afly666 阅读(1490) 评论(0) 推荐(0) 编辑

2018年8月8日

前端

摘要: 一.工具 sublime text 3 安装插件 二. web的三大标准: (1)html 结构标准 (2)css 表现(样式标准) (3)js 行为标准 公共的属性: id: 身份证 一个页面中只有一个唯一的id <p id = 'aaa'>文字1</p> <p class = 'aaa'>文字2 阅读全文

posted @ 2018-08-08 20:23 afly666 阅读(381) 评论(0) 推荐(0) 编辑

2018年7月3日

python进程和线程

摘要: 进程# *********通过process创建单个进程 from multiprocessing import Process import os # 子进程要执行的代码 def run_proc(name): print('Run child process %s (%s)...' % (name, os.getpid())) # 获取当前进程的名字,pid值 if _... 阅读全文

posted @ 2018-07-03 17:59 afly666 阅读(372) 评论(0) 推荐(0) 编辑

2018年6月20日

python 面向对象高级编程

摘要: #**********使用__slots__限制实例属性********** class Student(object): pass def set_age(self,age): self.age = age from types import MethodType s = Student() s.set_age = MethodType(set_age,s) #给实例绑定一... 阅读全文

posted @ 2018-06-20 20:04 afly666 阅读(194) 评论(0) 推荐(0) 编辑

2018年6月19日

python 面向对象编程 类和实例

摘要: # 在类的方法中再定义函数,然后实例类对象,引用这个方法 阅读全文

posted @ 2018-06-19 19:27 afly666 阅读(442) 评论(0) 推荐(0) 编辑

python 模块

摘要: 模块py文件 引用模块 阅读全文

posted @ 2018-06-19 18:05 afly666 阅读(223) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 下一页

导航

回到顶部