Commit fc479b2e by BellCodeEditor

save project

parent 79b71ea4
Showing with 9 additions and 3 deletions
......@@ -5,7 +5,13 @@ class Jojo:
self.hp=hp
self.attack=attack
def upgrade():
baijinzhixing.level=baijinzhixing.level+1
baijinzhixing.hp=baijinzhixing.hp+44
baijinzhixing.attack=baijinzhixing.attac+99999000000000
baijinzhixing=Jojo("白金之星",56,1000000000)
shijie=Jojo("世界",162,10000000)
print("白金之星的血量为:",baijinzhixing.hp)
print("世界的血量为:",shijie.hp)
\ No newline at end of file
upgrade()
upgrade()
print("白金之星的血量为:",baijinzhixing.hp)
\ 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