Commit 7007ba0a by BellCodeEditor

save project

parent 24d645f0
Showing with 10 additions and 0 deletions
...@@ -7,3 +7,12 @@ yase=Hero() ...@@ -7,3 +7,12 @@ yase=Hero()
print("Yase's level is:"+str(yase.level)) print("Yase's level is:"+str(yase.level))
print("Yase's Hp is:"+str(yase.Hp)) print("Yase's Hp is:"+str(yase.Hp))
print("Yase's attack is:"+str(yase.attack)) print("Yase's attack is:"+str(yase.attack))
class Hero2:
def __init__(self2):
self2.level=1
self2.Hp=240
self2.attack=25
Houyi=Hero2()
print("Houyi's level is:"+str(Houyi.level))
print("Houyi's Hp is:"+str(Houyi.Hp))
print("Houyi's attack is:"+str(Houyi.attack))
\ 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