Commit 0a91843a by BellCodeEditor

save project

parent 26b3b1d4
Showing with 11 additions and 2 deletions
...@@ -10,4 +10,13 @@ bro2=["刘备",161,9.1] ...@@ -10,4 +10,13 @@ bro2=["刘备",161,9.1]
bro3=["张飞",166,8.3] bro3=["张飞",166,8.3]
bros[0]="关羽" bros[0]="关羽"
bros[1]="刘备" bros[1]="刘备"
print(bros) print(bros)
\ No newline at end of file hero=["李浩"30"浩二",37,"浩儿",93,"浩尔"]
name=""
power=66
hero["李浩尔","李浩二"]
for i in range(len(hero)):
if i% 2==1 and hero [i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
break
\ 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