Commit b1fa0b4e by BellCodeEditor

save project

parent 3c4a8e34
Showing with 11 additions and 4 deletions
......@@ -5,7 +5,14 @@ class hero:
self.hp = hp
self.attack = attack
chenshi = hero("陈石"100000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
yuyi = Hero("余意"100000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000)
def upgrade():
chenshi.level = chenshi.level+1
chenshi.hp = chenshi.hp +50
chenshi.attack + 4
print(chenshi.name=)
\ No newline at end of file
chenshi = hero("陈石"300,20)
print(chenshi.name+"一级攻击力是"+str(chenshi.attack))
upgrade()
upgrade()
upgrde()
print(chenshi.name+"现在的攻击力是"+str(chenshi.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