From 83d436f0869e7880a454b72df09a3d35c0ae7a2f Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 9 Jun 2024 17:57:20 +0800
Subject: [PATCH] save project

---
 diy.py | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/diy.py b/diy.py
index ecd2688..3619180 100644
--- a/diy.py
+++ b/diy.py
@@ -1,12 +1,17 @@
-
 class Hero:
-    def if _init_(self):
+    def if _init_(self,n,hp,att):
         self.level = 1
-        self.att = 20
-        self.hp=  300
-yase=Hero()
+        self.name=n
+        self.att = att
+        self.hp=  hp
+yase=Hero('亚瑟',300,20)
 print(yase.hp)
-print(yase.att)
+
+
+
+
+
+    
 
 
 
--
libgit2 0.25.0