Commit 47abf16e by BellCodeEditor

save project

parent 4e9fcbe6
Showing with 4 additions and 4 deletions
......@@ -12,6 +12,6 @@ gl=Hero("小明",300,20) #定义英雄
hb=Hero('小东',250,23)
gl.uplevel()
print(gl.name) #显示各数值
print(gl.hp)
print(gl.attack)
\ No newline at end of file
print('角色名:',gl.name) #显示各数值
print("血量:",gl.hp)
print('攻击力:',gl.attack)
\ 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