SoFunction
Updated on 2024-11-12

Learning Python Basics Bullet #2 Class Attributes and Instance Attributes


#!/usr/bin/env python
class Foo(object):
x=1
if __name__=='__main__':
foo = Foo()
print '=',
print '=',
= 2
print '=',
print '=',