fork(2) download
  1. class Yoba:
  2. @staticmethod
  3. def perekat(*argumenty):
  4. print("perekat:", argumenty)
  5.  
  6. @classmethod
  7. def ukritie(*argumenty):
  8. print("ukritie:", argumenty)
  9.  
  10. class Peka (Yoba):
  11. pass
  12.  
  13.  
  14. Yoba.perekat()
  15. Yoba.ukritie()
  16. Peka.ukritie()
  17.  
  18. yoba = Yoba()
  19. yoba.ukritie()
Success #stdin #stdout 0.02s 9936KB
stdin
Standard input is empty
stdout
perekat: ()
ukritie: (<class '__main__.Yoba'>,)
ukritie: (<class '__main__.Peka'>,)
ukritie: (<class '__main__.Yoba'>,)