Commit 336df331 by BellCodeEditor

save project

parent d6c81a0f
Showing with 32 additions and 0 deletions
a=int(input("输入分散"))
if 91<a<100:
print("A")
elif 81<a<90:
print("B")
elif 71<a<80:
print("C")
elif 61<a<70:
print("D")
else 0<a<60:
print("E")
\ No newline at end of file
class Hero:
def __init__(self,name,hp,attack):
self.level=1
self.hp=hp
self.atfack=attack
self.name=name
yase=Hero('亚瑟',1000,10)
houyi=Hero('后裔',10000,100)
print(yase.hp)
print(houyi.hp)
class Hero:
def __init__(self,name,hp,attack):
self.level=1
self.hp=hp
self.atfack=attack
self.name=name
yase=Hero('亚瑟',1000,10)
houyi=Hero('后裔',10000,100)
print(yase.hp)
print(houyi.hp)
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