Commit f9c07074 by BellCodeEditor

save project

parent b06ea807
Showing with 10 additions and 10 deletions
......@@ -14,12 +14,12 @@ zhugeliang=Hero('诸葛亮',270,40)
yase.upgrade()
houyi.upgrade()
zhugeliang.upgrade()
print(yase.hp)
print(yase.attack)
print(yase.level)
print(houyi.hp)
print(houyi.attack)
print(houyi.level)
print(zhugeliang.hp)
print(zhugeliang.attack)
print(zhugeliang.level)
\ No newline at end of file
print(yase.name+'的血量为'+str(yase.hp))
print(yase.name+'的攻击为'+str(yase.attack))
print(yase.name+'的等级为'+str(yase.level))
print(houyi.name+'的血量为'+str(houyi.hp))
print(houyi.name+'的攻击为'+str(houyi.attack))
print(houyi.name+'的等级为'+str(houyi.level))
print(zhugeliang.name+'的血量为'+str(zhugeliang.hp))
print(zhugeliang.name+'的攻击为'+str(zhugeliang.attack))
print(zhugeliang.name+'的等级为'+str(zhugeliang.level))
\ 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