From a7f35d986411fff18d4e1acec05d8dbf272a259c Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Tue, 15 Jun 2021 17:51:12 +0800
Subject: [PATCH] auto save

---
 diy2.py | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 diy2.py

diff --git a/diy2.py b/diy2.py
new file mode 100644
index 0000000..14ad24d
--- /dev/null
+++ b/diy2.py
@@ -0,0 +1,28 @@
+class Hero: 
+    def __init__(self,name,hp,attack):
+        self.level = 1
+        self.name = name
+        self.hp = hp
+        self.attack = attack
+def upgrade():
+     yase.level= yase.level+1
+     yase.hp=yase.hp+50
+     yase.attack=yase.attack+4
+yase = Hero("亚瑟",300,20)
+print("亚瑟的血量为:",yase.hp)
+upgrade()
+print("亚瑟的血量为:",yase.hp)
+
+ 
+
+
+
+
+
+
+
+
+
+
+
+
--
libgit2 0.25.0