Commit ff7e7c18 by BellCodeEditor

save project

parent cbe5582c
Showing with 18 additions and 2 deletions
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
filel=open(r'C:\Users\Administrator\Desktop',w,)
class Hero:
def _init_(self):
self.level=1
self.hp=300
self.attack=20
def upgrade():
yase.level=yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+4
yase=Hero("亚瑟",300,20)
print=Hero("亚瑟的初始血量值为:",yase.hp)
upgrade()
upgrade()
print("升级2次后,亚瑟的初始血量值为:"")
\ 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