Commit 1318d741 by BellCodeEditor

save project

parent 45f21b71
Showing with 20 additions and 0 deletions
......@@ -16,6 +16,9 @@ class Hero(object):
info=info1+info2+info3
print(info)
else:
info=info1+info2+info3
print(info)
exit
yase = Hero("垭瑟")
houyi= Hero("后羿")
......
class Cat:
def __init__(self):
self.footNum+4
self.eyeNum+2
self.head+1
self.earsNum+2
self.skin="black"
def num(self):
print("小猫跑起来了")
def skin(self.prey):
print("小猫抓到了")
role=Cat
role.skin("老鼠")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment