1.类和对象 #create a class class fruit: def say(self): print "hello, python" if __name__ == "__main__": f = fruit() #不同于Java,不用new f.say() 2,属性和方法 #create a class class fruit: price = 0<span style="white-space:pre"> </sp…
[python 译] 基于面向对象的分析和设计 // */ // ]]> [python 译] 基于面向对象的分析和设计 Table of Contents 1 原文地址 2 引言 2.1 译者 2.2 作者 3 The Analysis of the Simple Game Engine 3.1 Write or Draw About the Problem 3.2 Extract Key Concepts and Research Them 3.3 Create a Class Hier…