Python
怅望晴空
静水流深,宁静致远
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python中uuid来生成机器唯一标识
摘要:我们可以使用uuid1的后16位来标识一个机器。 # use machine specific uuid, last 16 char will be the same if machine is the same mid = uuid.uuid1().get_hex()[16:]1 uuid的其他模块 概述: UUID是128位的转载 2017-04-09 12:03:21 · 607 阅读 · 0 评论 -
aiomysql的官方文档
官方文档位置如下,方便学习http://aiomysql.readthedocs.io/en/latest/pool.html原创 2017-04-09 12:12:18 · 1373 阅读 · 0 评论 -
asyncio 官方文档
https://docs.python.org/3/contents.html原创 2017-04-23 21:57:09 · 790 阅读 · 0 评论 -
装饰器的注释
代码为Python装饰器的使用说明 # -*-coding : utf-8 -*-def log(func): def wrapper(*args, **kw): print('call %s():' % func.__name__) return func(*args, **kw) return wrapper''' foo(): p原创 2017-04-23 21:59:24 · 447 阅读 · 0 评论 -
DAY3代码注释
此文为Python学习的注释,代码来源于廖老师,方便自己以后查询修改学习,本人还是小白,如果有不对,请多指教 #!/usr/bin/env python3# -*- coding: utf-8 -*-__author__ = 'Michael Liao'import asyncio, loggingimport aiomysqldef log(sql, args=()):原创 2017-04-23 22:01:34 · 946 阅读 · 0 评论 -
http client/server for asyncio
官方文档http://aiohttp.readthedocs.io/en/stable/web.html原创 2017-04-23 23:09:53 · 304 阅读 · 0 评论
分享