Guest User

Untitled

a guest
Feb 18th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def FormatList(object, width=100):
  2. keys = [i for i in dir(object) if ( not str(i).startswith('__'))]
  3. if keys:
  4. for key in keys:
  5. print("{0:<40} : {1:<80}".format(key, (str(getattr(object, key)))[:width]))
Add Comment
Please, Sign In to add comment