Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- class MyClass:
- def __init__(self):
- self.field = 1
- instance = MyClass()
- for subdir, dirs, files in os.walk("."):
- instance.field = len(dirs)
- print instance.field
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement