Guest User

Untitled

a guest
Jan 8th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. class C:
  2.     pass
  3.  
  4. class B(C):
  5.     pass
  6.  
  7. x=B.__bases__
  8.  
  9. delete =['<class \'__main__.','class']
  10.  
  11. line=str()
  12.  
  13. for c in x:
  14.     for word in delete:
  15.         line=line.replace(word,"")
  16.        
  17. print(line)
Advertisement
Add Comment
Please, Sign In to add comment