26 lines
420 B
Python
Raw Normal View History

2022-03-02 15:13:09 +00:00
# need core >= v1.4.0
2022-03-02 23:06:00 +08:00
import PikaStdLib
class people:
def do_hi(self):
print('hello i am people')
def hi(self):
2022-04-04 16:34:45 +08:00
self.do_hi()
2022-03-02 23:06:00 +08:00
class student(people):
def do_hi(self):
print('hello i am student')
class mymem(PikaStdLib.MemChecker):
def mymax(self):
print('mem used max: ' + str(self.getMax()) + ' kB')
p = people()
s = student()
p.hi()
s.hi()
mem = mymem()
mem.mymax()