instance variable and data attribute

后端 未结 0 1053
时光说笑
时光说笑 2020-12-22 00:33
class Coordinate (object):
    def __init__ (self, x, y):
        self.x = x
        self.y = y

c = Coordinate (3,4)
print (c.x)

in this code, is c

相关标签:
回答
  • 消灭零回复
提交回复
热议问题