Commit 3e6c893f by BellCodeEditor

save project

parent 4d8e71f0
Showing with 11 additions and 0 deletions
name = input('whats your name?')
power = int(input('臂力多少'))
hero= ['a',30,'b',37,'c',52,'d',89,'e',98,'f',100]
for i in range(len(hero)):
if i%2 == 1 and hero[i] >= power
hero.insert(i-1,name)
hero.insert(i,pwoer)
break
print(hero[-6:])
\ No newline at end of file
......@@ -12,6 +12,7 @@ a=['华雄']
b=['文丑','颜良']
a.extend(b)
print(a)
b[2]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment