- 博客(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
796
原创 http client/server for asyncio
官方文档http://aiohttp.readthedocs.io/en/stable/web.html
2017-04-23 23:09:53
266
原创 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
908
原创 装饰器的注释
代码为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
415
原创 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
220
原创 aiomysql的官方文档
官方文档位置如下,方便学习http://aiomysql.readthedocs.io/en/latest/pool.html
2017-04-09 12:12:18
1313
转载 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
566
转载 Python 方法调用机制
内容目录介绍构建和初始化使操作符在自定义类内工作描述你的类属性访问控制制作自定义序列反射可调用对象上下文管理构建描述符对象Pickling你的对象总结附录:如何调用神奇方法1.介绍这份指南是几个月内最有价值的Blog投稿精华。它的主题是向大家讲述Python中的神奇方法。何为神奇方法呢?它们是面
2017-04-09 12:00:25
541
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人