- [my_script]
- py =#!/usr/bin/python
- py =
- py =
- py =class Myclass(object):
- py =
- py = def __init__(self, status="OK"):
- py = self.status = status
- py =
- py = def check(self):
- py = print "I guess I'm %s" % self.status
- py =
- py =
- py =if __name__ == "__main__":
- py = c = Myclass()
- py = c.check()
|