自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

wbdream's heaven

Try my best to do everything!!!

  • 博客(4)
  • 收藏
  • 关注

原创 Django 中间件Middleware

中间件(Middleware)用法:    django 中的中间件(middleware),在django中,中间件其实就是一个类,在请求到来和结束后,django会根据自己的规则在合适的时机执行中间件中相应的方法。setting.pyMIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'dja...

2018-06-25 17:36:29 200

原创 NGINX + uWSGI +Django +ubantu下发布

先安装uWSGI :pip install uwsgi测试测试是否安装成功:$ uwsgi --version2.0.15测试文件:# test.pydef application(env, start_response):    start_response('200 OK', [('Content-Type','text/html')])    return [b"Hello World"] ...

2018-06-25 12:01:23 627

原创 scrapy 框架 +MongoDB 爬取小说网站

1.先行安装MongoDB数据库,并通过mongod --dbpath "D:\mongodb\data"启动数据库。  scrapy <command> [options] [args]Available commands:  bench         Run quick benchmark test  fetch         Fetch a URL using the Scr...

2018-06-23 09:56:14 710

原创 Numpy的基本操作

import numpy as npprint(help(np.genfromtxt))Help on function genfromtxt in module numpy.lib.npyio:genfromtxt(fname, dtype=<class 'float'>, comments='#', delimiter=None, skip_header=0, skip_f...

2018-06-21 06:55:22 706

空空如也

空空如也

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

TA关注的人

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