From 8b505ad98420f2ae7ec6cccdfa8cce7d388573b6 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 25 Oct 2020 14:31:49 +0800
Subject: [PATCH] save project

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

diff --git a/diy.py b/diy.py
index c44417b..068aedf 100644
--- a/diy.py
+++ b/diy.py
@@ -4,9 +4,9 @@ name='刘强'
 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)
+      hero.insert(i,power)
+    break  
 print(hero)
\ No newline at end of file
--
libgit2 0.25.0