Mercurial > js4py
view point.py @ 194:2f10061fec29 javascript-exercises
$ python py/remove_answers.py
| author | jf3243 |
|---|---|
| date | Mon, 21 Nov 2011 17:27:12 +0000 |
| parents | 62b9c15e287f |
| children |
line wrap: on
line source
class Point(object): def __init__(self, x, y): self.x = x self.y = y def move(self, dx, dy): self.x += dx self.y += dy mypoint = Point(2, 3) mypoint.move(1, 1)
