摘要:
学习资料 * github * 官方文档 * 项目代码 学习记录 中间件 # Configure your WSGI server to load "things.app" (app is a WSGI callable) app = falcon.API(middleware=[ AuthMidd 阅读全文
摘要:
是什么 python的一种单元测试框架,与python自带的unittest测试框架类似,但是比unittest框架使用起来更简洁,效率更高 安装 pip install -U pytest 举例 测试文件 # content of test_sample.py def func(x): retur 阅读全文
摘要:
详细错误描述如下: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte 在使用pycurl包进行爬虫的时候,对爬虫的返回的页面,进行写文件或者打印的时候,需要进行解码操作 阅读全文
摘要:
nginx的使用记录 在windows下,使用nginx十分简单;简单修改配置,运行就好。 nginx的配置记录 配置结构 看下面的代码,比较直观: http { #http include mime.types; default_type application/octet-stream; #lo 阅读全文
摘要:
书籍 《nginx教程从入门到精通》 项目中用的时候查阅资料 Nginx透传获取客户端IP地址 request nginx 透传获取真实的ip Nginx多层反向代理透传客户端真实IP Nginx 学习笔记 (a2) - $host / $http_host / $server_name 区别 ng 阅读全文