Python test
Python
code posted
by
=°.°=
created at 03 Apr 11:13, updated at 03 Apr 11:14
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#!/bin/env python """Just a sample python code""" class MyClass: def __private(self): pass def hello(f): def h(): print "hello " + f.__name__ return f() return h @hello def add(a, b): return a + b for i, n in enumerate(xrange(2, 3, 2)): print add(i, n) c = MyClass() |
337 Bytes in 2 ms with coderay