From 0b7901f89a2630b834bd9f47dccd74ac489f6355 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Tue, 30 Mar 2021 19:20:40 +0800
Subject: [PATCH] save project

---
 diy2.py |  9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/diy2.py b/diy2.py
index 3cfe56b..0167390 100644
--- a/diy2.py
+++ b/diy2.py
@@ -6,4 +6,11 @@ class Hero:
         self.attack = attack
 yase = Hero("亚瑟",280,26)
 houyi = Hero("后羿",310,32)
-print(yase.hp)
\ No newline at end of file
+print(yase.hp)
+def up():
+    yase.level += 1
+    yase.hp += 50
+    yase.attack += 4
+
+up()
+up()
\ No newline at end of file
--
libgit2 0.25.0