roach57
Python,Linux,运维自动化,Shell

导航

 

2017年5月15日

摘要: ``` python#!/usr/bin/env python# -*- coding: utf-8 -*-# Pw @ 2017-05-15 10:04:20class Proxy: def __init__(self, obj): self._obj = obj def __getattr__(self, name): print('getattr:',... 阅读全文
posted @ 2017-05-15 10:19 roach57 阅读(198) 评论(0) 推荐(0) 编辑
 
摘要: ```#!/usr/bin/env python# -*- coding: utf-8 -*-# Pw @ 2017-05-09 17:34:00import collectionsimport bisectclass SortedItems(collections.Sequence): def __init__(self, initial=None): self._items... 阅读全文
posted @ 2017-05-15 09:32 roach57 阅读(228) 评论(0) 推荐(0) 编辑