Commit 1253c2d7 by BellCodeEditor

save project

parent fdb81157
Showing with 13 additions and 3 deletions
pop=open(r,"C:\Users\玛酷机器人5\Desktop\pop.txt","w",encoding="utf-8") class Hero(object):
a=read(pop) def__init__(self,name):
\ No newline at end of file self.level=1
self.hp=250
self.attack=40
self.name=name
def combat(self,enemy):
enemy.hp-=self.attack
info1=self.name+'对'+enemy.name+'发起攻击'
info2=
\ 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