只是想打印红色和蓝色-
class color:
def __init__(self,r,b):
self.r = r
self.b = b
def displaycolor(self):
print "The first should be :" self.r
print "The 2nd should be :" self.b
pagal=color("Red","blue")
pagal.displaycolor()