c的例子中,x=3, y=4, 而self就是c自己,python自己會知道,不用寫上去。 Define a method for the class. class Coordinate(object): def __init__(self, x, y): self.x = ...
確定! 回上一頁