随笔分类 -  python

上一页 1 ··· 8 9 10 11 12
摘要:w 阅读全文
posted @ 2017-05-04 20:53 papering 阅读(201) 评论(0) 推荐(0)
摘要:w http://stackoverflow.com/questions/20166749/how-to-convert-an-ordereddict-into-a-regular-dict-in-python3 阅读全文
posted @ 2017-05-04 18:51 papering 阅读(147) 评论(0) 推荐(0)
摘要:内存管理 — Python 3.11.3 文档 https://docs.python.org/zh-cn/3/c-api/memory.html 在 Python 中,内存管理涉及到一个包含所有 Python 对象和数据结构的私有堆(heap)。这个私有堆的管理由内部的 Python 内存管理器( 阅读全文
posted @ 2017-05-03 16:52 papering 阅读(294) 评论(0) 推荐(0)
摘要:问题:nodeName,nodeValue未知 xml动态数据入库, 解决方案: 入库结果 test-data >更高效的 nodeName,nodeValue未知 xml 入库方案 xml >? >database json只是过程,不是目的; 想到一种算法是将xml转为string,然后借助正则 阅读全文
posted @ 2017-05-03 13:49 papering 阅读(244) 评论(0) 推荐(0)
摘要:w 使用 Python 进行线程编程https://www.ibm.com/developerworks/cn/aix/library/au-threadingpython/index.html url_fetch_serial.py 阅读全文
posted @ 2017-04-29 16:21 papering 阅读(187) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/iamcodingmylife/article/details/79866600 1,使用python文件默认的‘ file ’属性 2,使用 sys.argv[0] print sys.argv # 输入参数列表 print sys.argv[0] # 阅读全文
posted @ 2017-04-29 14:50 papering 阅读(348) 评论(0) 推荐(0)
摘要:w 使用 Python 实现多进程https://www.ibm.com/developerworks/cn/aix/library/au-multiprocessing/ 阅读全文
posted @ 2017-04-29 14:47 papering 阅读(154) 评论(0) 推荐(0)
摘要:实践: 1、 def odd(): print("s1") yield print("s2") yield print("s3") yield for i in odd(): continue o=odd() next(o) next(o) next(o) next(o) # StopIterati 阅读全文
posted @ 2017-04-28 18:06 papering 阅读(524) 评论(0) 推荐(0)
摘要:class property(fget=None, fset=None, fdel=None, doc=None) 返回 property 属性。 fget 是获取属性值的函数。 fset 是用于设置属性值的函数。 fdel 是用于删除属性值的函数。并且 doc 为属性对象创建文档字符串。 一个典型 阅读全文
posted @ 2017-04-26 16:42 papering 阅读(591) 评论(0) 推荐(0)
摘要:Underscores in Python https://shahriar.svbtle.com/underscores-in-python Underscores in Python This post discusses the use of the _ character in Python 阅读全文
posted @ 2017-04-26 16:01 papering 阅读(234) 评论(0) 推荐(0)
摘要:Using the URLconf defined in config.urls, Django tried these URL patterns, in this order: 阅读全文
posted @ 2017-04-26 14:55 papering 阅读(509) 评论(0) 推荐(0)
摘要:小结: -1 位置参数f(a,b,c='c')默认参数f(a,b,c='c')可变参数f(a,b,c='c',*args) f('a','b',c='c',1,2,3) f('a','b',c='c',*[1,2,3]) f('a','b',c='c',*(1,2,3))关键字参数 f(a,b,c= 阅读全文
posted @ 2017-04-22 09:59 papering 阅读(369) 评论(0) 推荐(0)
摘要:Python | super() function with multilevel inheritance - GeeksforGeeks https://www.geeksforgeeks.org/python-super-function-with-multilevel-inheritance/ 阅读全文
posted @ 2017-02-14 17:50 papering 阅读(289) 评论(0) 推荐(0)
摘要:https://docs.djangoproject.com/en/2.2/topics/pagination/ Paginator objects¶ The Paginator class has this constructor: class Paginator(object_list, per 阅读全文
posted @ 2017-02-14 17:42 papering 阅读(240) 评论(0) 推荐(0)
摘要:https://docs.python.org/3/reference/datamodel.html#object.__init__ 阅读全文
posted @ 2016-08-28 21:38 papering 阅读(195) 评论(0) 推荐(0)
摘要:yield PEP 492 – Coroutines with async and await syntax | peps.python.org https://peps.python.org/pep-0492/ Abstract The growth of Internet and general 阅读全文
posted @ 2016-08-28 13:57 papering 阅读(434) 评论(0) 推荐(0)

上一页 1 ··· 8 9 10 11 12