main.py 420 B

12345678910111213141516171819202122232425
  1. # need core >= v1.4.0
  2. import PikaStdLib
  3. class people:
  4. def do_hi(self):
  5. print('hello i am people')
  6. def hi(self):
  7. self.do_hi()
  8. class student(people):
  9. def do_hi(self):
  10. print('hello i am student')
  11. class mymem(PikaStdLib.MemChecker):
  12. def mymax(self):
  13. print('mem used max: ' + str(self.getMax()) + ' kB')
  14. p = people()
  15. s = student()
  16. p.hi()
  17. s.hi()
  18. mem = mymem()
  19. mem.mymax()