摘要: 》》》》》基础rabbitMQ数据交互 1 import pika 2 connection = pika.BlockingConnection( 3 pika.ConnectionParameters('localhost') 4 ) 5 channel = connection.channel( 阅读全文
posted @ 2017-12-13 22:54 cerofang 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 》》》》》携程greenlet模块 1 from greenlet import greenlet 2 def test1(): 3 print(15) 4 gr1.switch() 5 print(16) 6 gr1.switch() 7 def test2(): 8 print(25) 9 gr 阅读全文
posted @ 2017-12-13 21:31 cerofang 阅读(264) 评论(0) 推荐(0) 编辑