几行代码搞定python 设计模式[转]
摘要:
Python代码#!/usr/bin/envpython#-*-coding:utf-8classHttpBase:defget(self):psssclassHttp1(HttpBase):defget(self):print'http1'classHttp2(HttpBase):defget(self):print'http2'classBase:def__init__(self):self.httpobj=Nonedefhttp(self):self.httpobj.get()defcompute(self):self.http()self.show()# 阅读全文
posted @ 2012-07-04 00:07 Mr 布鲁斯 阅读(301) 评论(0) 推荐(0)
浙公网安备 33010602011771号