Commit 20ad3c73 by BellCodeEditor

save project

parent 50bbdb35
Showing with 10 additions and 12 deletions
name = '刘强'
bro1="关羽" power = 66
bro2="刘备" hero = ['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98]
bro3="张飞" for i in range(len(hero)):
bros=["刘备","关羽","张飞"] if i%2==1 and hero[i]>=power:
bro1=["关羽",160,8.5] hero.insert(i-1,name)
bro2=["刘备",161,9.1] hero.insert(i,power)
bro3=["张飞",166,8.3] break
bros[0]="关羽" print(hero)
bros[1]="刘备" \ No newline at end of file
print(bros)
\ 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