上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 48 下一页
摘要: import time from tornado.httpclient import HTTPClient,AsyncHTTPClient def ssync_visit(): old_time = time.time() #HTTPClient 是tornado 同步访问HTTP客户端 http_ 阅读全文
posted @ 2018-09-18 00:00 十七楼的羊 阅读(1076) 评论(0) 推荐(0) 编辑
摘要: select 是一种异步实现技术,poll与epoll都是给予select 来实现的,因此学会select至关重要,它会告诉你哪一个io事件就绪首先了解 select 函数在 c语言之中的定义: int select(int n,fd_set * readfds,fd_set * writefds, 阅读全文
posted @ 2018-09-16 16:22 十七楼的羊 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 外键: 数据插入的完整性检验! CREATE TABLE cities_two ( city varchar(80) primary key, location point ); create table weather_two ( --外键指向 cities_two city varchar(80) r... 阅读全文
posted @ 2018-09-14 11:28 十七楼的羊 阅读(563) 评论(0) 推荐(0) 编辑
摘要: class WSGIHandler(base.BaseHandler): request_class = WSGIRequest def __init__(self, *args, **kwargs): super(WSGIHandler, self).__init__(*args, **kwarg 阅读全文
posted @ 2018-09-13 16:14 十七楼的羊 阅读(261) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import logging from django.conf import settings from django.contrib.auth import authenticate from django.contrib.auth.models i 阅读全文
posted @ 2018-09-13 09:59 十七楼的羊 阅读(191) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 48 下一页