From d00ddb623a46401ec05871a96282f1daf07d9493 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 23 May 2021 12:09:35 +0800
Subject: [PATCH] save project

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

diff --git a/diy.py b/diy.py
index 8c4eec1..7310084 100644
--- a/diy.py
+++ b/diy.py
@@ -5,7 +5,9 @@ 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,name)
         hero.insert(i,power)
-print(hero)
\ No newline at end of file
+        break
+print(hero)
+
--
libgit2 0.25.0