Commit f20d1b04 by BellCodeEditor

save project

parent ed85295b
Showing with 5 additions and 4 deletions
name='efwef' name=int(input("输入名字"))
power=66 power=int(input("输入力量""))
hero=['wdwd',30,'ghwdgh',37,'erfgerf',52,'fewfwer',89,'cvbcb',98] hero=['wdwd',30,'ghwdgh',37,'erfgerf',52,'fewfwer',89,'cvbcb',98]
for i in range(len(hero)): for i in range(len(hero)):
if i%2==1 and power<hero[i]: if i%2==1 and power<hero[i]:
hero.insert(i-1,'efwef') hero.insert(i-1,name)
hero.insert(i,66) hero.insert(i,power)
break break
print(hero) print(hero)
\ 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