Commit a9918122 by BellCodeEditor

save project

parent 288806b7
Showing with 16 additions and 4 deletions
# 我们都爱夸夸夸
name=input("你叫什么名字")
print(name+"你是最棒的创造师耶!")
\ No newline at end of file
class Hero(obgect):
def __init__(self,name):
self.lv=1
self.hp=250
self.at=40
self.name=name
def cc(self,ee):
ee.hp-=self.at
aaa=self.name+"对"+ee.name+"发起进攻,"
bbb="造成"+str(self.at)+"点伤害,"
if ee.hp > 0:
ccc=ee.name+"还剩下"+str(self.hp)+"血量"
mm=aaa+bbb+ccc
print(mm)
exit()
\ 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