From 2f6fbd70d21aa835f22c4a85c4062527a13ec620 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 25 Dec 2021 14:41:38 +0800
Subject: [PATCH] save project

---
 diy.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/diy.py b/diy.py
index 8c4eec1..ad4c81c 100644
--- a/diy.py
+++ b/diy.py
@@ -5,7 +5,8 @@ power=66
 hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98]
 # 自动排序
 for i in range(len(hero)):
-    if i%2==1 and hero[i]>=power:
-        hero.insert(i-1,name)    
+    if i%2==1 and hero[i]>=power:    
+        hero.insert(i-1,name)
         hero.insert(i,power)
+        break
 print(hero)
\ No newline at end of file
--
libgit2 0.25.0