From e3ba31d0a5cabf5fe7d0422f6a22e55c8a562e91 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Wed, 10 Aug 2022 12:00:09 +0800
Subject: [PATCH] save project

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

diff --git a/diy.py b/diy.py
index e5e4ba0..9617788 100644
--- a/diy.py
+++ b/diy.py
@@ -1,7 +1,7 @@
 # 臂力挑战赛
 # 快用你机灵的小脑瓜想想,如何将刘强和他的臂力值自动插入到hero列表中?
-name='刘强'
-power=66
+name=input('请问你叫啥?')
+power=int(input('力量值是多少?'))
 hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98]
 # 自动排序
 for i in range(len(hero)):
@@ -9,4 +9,4 @@ for i in range(len(hero)):
         hero.insert(i-1,name)    
         hero.insert(i,power)
         break
-print(hero)
\ No newline at end of file
+print(hero[6:12])
\ No newline at end of file
--
libgit2 0.25.0