Here is an example python module:
then I do it in python shell:
$ python Python 2.7.2 (default, Jan 13 2012, 17:11:09) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from foo import Foo >>> f = Foo() {} >>> f = Foo() {'1': 1, '0': 0, '3': 3, '2': 2, '5': 5, '4': 4, '7': 7, '6': 6, '9': 9, '8': 8}
Why is the second time a not empty? I missed something trivial.
python class
miki725
source share