Commit 7ec5a3fe by BellCodeEditor

auto save

parent aa5e46d1
Showing with 12 additions and 0 deletions
name = input("请输入名字:")
power = input("请输入臂力值:")
hero = ['张三',68,' 李四',78,'张强',88,'王五',98]
for i in range(len(hero)):
if i%2==1:
if power>hero[i]:
hero.insert(i-1,name)
hero.insert(i,power)
\ No newline at end of file
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