Commit 631e4afc by BellCodeEditor

save project

parent 0750f12d
Showing with 17 additions and 3 deletions
...@@ -5,5 +5,19 @@ class Hero: ...@@ -5,5 +5,19 @@ class Hero:
self.HP=hp self.HP=hp
self.Lv=lv self.Lv=lv
self.Attack=att self.Attack=att
SB=Hero("a",0,0,0) def up():
print(SB.name,hp,lv,att) SB.HP=SB.HP+1
\ No newline at end of file SB.Lv=SB.Lv=111111
SB.Attack=SB.Attack+111111
SB=Hero("SB",9999999,99999999,9999999)
up()
# while True:
# a=input("")
# if a=="1":
# print(SB.Name)
# if a=="2":
# print(SB.Lv)
# if a=="3":
# print(SB.HP)
# if a=="4":
# print(SB.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