- 博客(9)
- 收藏
- 关注
原创 autocomplete自动提交值无反应原因
autocomplete自动提交值,input中必须要有name属性,且name中必须要有值。 <form autocomplete="on" action=''> <input type="text" name="fname"> <input type="submit" > </form> ...
2019-04-12 10:06:45
803
原创 http client/server for asyncio
官方文档 http://aiohttp.readthedocs.io/en/stable/web.html
2017-04-23 23:09:53
272
原创 DAY3代码注释
此文为Python学习的注释,代码来源于廖老师,方便自己以后查询修改学习,本人还是小白,如果有不对,请多指教 #!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = 'Michael Liao' import asyncio, logging import aiomysql def log(sql, args=()):
2017-04-23 22:01:34
913
原创 装饰器的注释
代码为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
419
原创 python装饰器
# -*-coding : utf-8 -*-def log(func): def wrapper(*args, **kw): print('call %s():' % func.__name__) return func(*args, **kw) return wrapper'''foo(): print('1111')f=foof()>>>1111'''@logdef now(): print
2017-04-23 18:29:18
221
原创 aiomysql的官方文档
官方文档位置如下,方便学习 http://aiomysql.readthedocs.io/en/latest/pool.html
2017-04-09 12:12:18
1318
转载 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
570
转载 Python 方法调用机制
内容目录 介绍 构建和初始化 使操作符在自定义类内工作 描述你的类 属性访问控制 制作自定义序列 反射 可调用对象 上下文管理 构建描述符对象 Pickling你的对象 总结 附录:如何调用神奇方法 1.介绍 这份指南是几个月内最有价值的Blog投稿精华。它的主题是向大家讲述Python中的神奇方法。 何为神奇方法呢?它们是面
2017-04-09 12:00:25
543
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人