文章分类 -  python

摘要:1 WSGI介绍 1.1 什么是WSGI 首先介绍几个关于WSGI相关的概念WSGI:全称是Web Server Gateway Interface,WSGI不是服务器,python模块,框架,API或者任何软件,只是一种规范,描述web server如何与web application通信的规范。 阅读全文
posted @ 2020-10-20 17:20 红领巾下的大刀疤 阅读(108) 评论(0) 推荐(0)
摘要:1.实现原理 1 def consumer(): 2 r ='' 3 while 1: 4 n = yield r 5 if not n: 6 break 7 print ('consumer receive msg: %s' % n) 8 r = '%s OK' % n 9 10 def prod 阅读全文
posted @ 2020-04-23 15:04 红领巾下的大刀疤 阅读(145) 评论(0) 推荐(0)
摘要:>>> # Whitespace stripping >>> s = ' hello world \n' >>> s.strip() 'hello world' >>> s.lstrip() 'hello world \n' >>> s.rstrip() ' hello world' >>> >>> # Character stripping >>> t = '-----hello 阅读全文
posted @ 2018-01-05 09:51 红领巾下的大刀疤 阅读(90) 评论(0) 推荐(0)
摘要:模块初识 模块相关介绍 time random os sys json & pickle shelve xml configparser hashlib subprocess optparse struct 所述一些模块方法并不完善,只是简单性的学习,或有错误,敬请指正 未完待续...... 为什么 阅读全文
posted @ 2017-05-03 14:43 红领巾下的大刀疤 阅读(92) 评论(0) 推荐(0)

/* 看板娘 */