Skip to content

Instantly share code, notes, and snippets.

@mingyc
Created March 22, 2012 11:14
Show Gist options
  • Save mingyc/2157726 to your computer and use it in GitHub Desktop.
Save mingyc/2157726 to your computer and use it in GitHub Desktop.
A simple circle module.
class Circle(object):
def __init__(self, radius):
self.radius = radius
circle = Circle(3)
print circle.radius
circle.radius = 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment