From 5e7737c5e4facc918f250a899163e96e534eedac Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Thu, 27 Apr 2023 16:34:59 +0800 Subject: [PATCH] auto save --- diy.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/diy.py b/diy.py index 8dd9197..8c4fbb5 100644 --- a/diy.py +++ b/diy.py @@ -8,8 +8,11 @@ for i in range(len(hero)): if i%2==1 and hero[i]>=power: hero.insert(i-1,name) hero.insert(i,power) - + #added by teacher, add break + break print(hero) #added by teacher print('i =',i) -print('len =',len(hero)) \ No newline at end of file +print('len =',len(hero)) +#臂力大王 +print("臂力大王是:",hero[-7:-1]) \ No newline at end of file -- libgit2 0.25.0