XiaoKL

随笔分类 -  Python

Python.Module.site
摘要:site " This module is automatically imported during initialization. The automatic import can be suppressed using the interpreter’s -S option. Importin 阅读全文

posted @ 2016-07-01 00:10 XiaoKL 阅读(1547) 评论(0) 推荐(0)

Python.with.context-manager
摘要:Context Manager 1. Context Manager简介 "Context managers are a way of allocating and releasing some sort of resource exactly where you need it." Ref[4] 阅读全文

posted @ 2016-05-04 07:08 XiaoKL 阅读(785) 评论(0) 推荐(0)

Python.Scrapy.14-scrapy-source-code-analysis-part-4
摘要:Scrapy 源代码分析系列-4 scrapy.commands 子包子包scrapy.commands定义了在命令scrapy中使用的子命令(subcommand): bench, check, crawl, deploy, edit, fetch,genspider, list, parse, ... 阅读全文

posted @ 2015-07-15 20:48 XiaoKL 阅读(579) 评论(0) 推荐(0)

Python.Scrapy.12-scrapy-source-code-analysis-part-2
摘要:Scrapy 源代码分析系列-2signals, signalmanager, project, conf1. 模块:signals.py signalmanager.pyproject.pyconf.py1.1 conf.pyproject.pyconf.py 是废弃的模块。她的功能由crawle... 阅读全文

posted @ 2015-07-15 18:32 XiaoKL 阅读(736) 评论(0) 推荐(0)

Python.Scrapy.11-scrapy-source-code-analysis-part-1
摘要:Scrapy 源代码分析系列-1 spider, spidermanager, crawler, cmdline, command分析的源代码版本是0.24.6, url:https://github.com/DiamondStudio/scrapy/blob/0.24.6如github 中Scra... 阅读全文

posted @ 2015-07-15 17:46 XiaoKL 阅读(1204) 评论(0) 推荐(0)

Python.resource-for-python-from-internet
摘要:1. pyvideo Python related video indexed so you can find it. http://pyvideo.org/ 2. 6 Useful Python Libraries Recommended by https://www.codementor.io/ 阅读全文

posted @ 2015-07-14 15:57 XiaoKL 阅读(223) 评论(0) 推荐(0)

Python.tornado.2.tornado.options
摘要:记录Tornado-4.0.2源码的阅读,学习,分析options.py1. imports 部分1.1 __future__1 from __future__ import absolute_import, division, print_function, with_statementfutur... 阅读全文

posted @ 2015-04-23 16:18 XiaoKL 阅读(548) 评论(0) 推荐(0)

XiaoKL学Python(D)argparse
摘要:argparse module 该文以Python 2为基础。 1. argparse简介 argparse 使得编写用户友好的命令行接口更简单。 argparse 知道如何解析sys.argv。 argparse 模块自动生成 “帮助” 信息和 “使用” 信息。 当用户使用了错误的命令行参数,ar 阅读全文

posted @ 2015-04-23 11:12 XiaoKL 阅读(298) 评论(0) 推荐(0)

XiaoKL学Python(E)Generator Expressions
摘要:在 阅读 https://github.com/vitonzhang/objc_dep 中的 objc_dep.py 时遇到: 在Ref[1] PEP中,这种语法称为 Generator Expressions。 例如: 等价于: Reference 1. PEP 289 - Generator E 阅读全文

posted @ 2015-04-23 11:10 XiaoKL 阅读(230) 评论(0) 推荐(0)

XiaoKL学Python(C)__future__
摘要:__future__ in Python 1. from __future__ import xxxx 这是为了在低版本的python中使用可能在某个高版本python中成为语言标准的特性,从而 在将代码由低版本迁移到高版本的过程中,减少需要做的工作。 这种语句被称为 future_statemen 阅读全文

posted @ 2015-04-22 01:07 XiaoKL 阅读(431) 评论(0) 推荐(0)

Python.list
摘要:1.Fastest way to check if a value exist in a listhttp://stackoverflow.com/questions/7571635/fastest-way-to-check-if-a-value-exist-in-a-list7 in aTrue:... 阅读全文

posted @ 2015-02-26 20:52 XiaoKL 阅读(185) 评论(0) 推荐(0)

Python.URLs
摘要:1.The Future of Asynchronous IO in Pythonhttps://medium.com/@paulcolomiets/the-future-of-asynchronous-io-in-python-ce200536d8472.Python's Hardest Prob... 阅读全文

posted @ 2015-01-29 12:13 XiaoKL 阅读(153) 评论(0) 推荐(0)

Python.SQLAlchemy.1
摘要:SQLAlchemy ORM的学习笔记ORM(Object Relational Mapper)为我们完成的工作:自动构造高水平的SQL; Python对象的持久化。1. Object Relational Tutorial (对象关系)SQLAlchemy ORM提供了一种方法,这种方法将用户定义... 阅读全文

posted @ 2014-07-20 21:25 XiaoKL 阅读(497) 评论(0) 推荐(0)

Python.SourceCodeSearchEngine
摘要:1.http://nullege.com 阅读全文

posted @ 2014-07-16 16:32 XiaoKL 阅读(169) 评论(0) 推荐(0)

Python.Books
摘要:Book List Flask 1. Flask Web Development Miguel Grinberg April 2014 2. Flask Framework Cookbook Shalabh Aggarwal November 21, 2014 3. 零基础学Python http: 阅读全文

posted @ 2014-06-29 18:50 XiaoKL 阅读(306) 评论(0) 推荐(0)

Python.SQLAlchemy.0
摘要:1. SQLAlchemy and Youhttp://lucumr.pocoo.org/2011/7/19/sqlachemy-and-you/2. Overviewhttp://docs.sqlalchemy.org/en/rel_0_9/intro.html2.1SQLAlchemy概览The... 阅读全文

posted @ 2014-06-28 20:25 XiaoKL 阅读(270) 评论(0) 推荐(0)

Python.Flask.0
摘要:Resource List of Flask 1. 吐槽 Python Web 框架 Flask https://blog.tonyseek.com/post/discuss-about-flask-framework/ 2. How To Structure Large Flask Applica 阅读全文

posted @ 2014-06-28 20:19 XiaoKL 阅读(171) 评论(0) 推荐(0)

Python.tornado.0
摘要:  https://github.com/facebook/tornado http://www.tornadoweb.org/en/stable/guide/intro.html  (AAAAA) Tornado文档 http://tornado.readthedocs.org/en/latest 阅读全文

posted @ 2014-04-07 22:50 XiaoKL 阅读(397) 评论(0) 推荐(0)

Python.with
摘要:with关键字with关键字的使用:http://www.cnblogs.com/Brogrammer/archive/2012/07/23/2605570.html 阅读全文

posted @ 2014-04-02 17:12 XiaoKL 阅读(172) 评论(0) 推荐(0)

导航