Commit 147b19a2 by BellCodeEditor

save project

parent 942b86a6
Showing with 13 additions and 3 deletions
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# 省略繁杂情节,刘关张三人一起冲入战场,围攻吕布: # 省略繁杂情节,刘关张三人一起冲入战场,围攻吕布:
a=['吕布'] a=['吕布']
b=['袁术','公孙瓒','关羽','张飞','刘备'] b=['袁术','公孙瓒','关羽','张飞','刘备']
'''
name="刘强" name="刘强"
power=66 power=66
hero=['a',10,'b',15,'c',16,'d',69,'e',71] hero=['a',10,'b',15,'c',16,'d',69,'e',71]
...@@ -12,4 +12,14 @@ for i in range(len(hero)): ...@@ -12,4 +12,14 @@ for i in range(len(hero)):
hero.insert(i-1,name) hero.insert(i-1,name)
hero.insert(i,power) hero.insert(i,power)
break break
print(hero) print(hero)
\ No newline at end of file '''
power=int(input("臂力"))
hero=['hh',10,'b',15,'c',16,'d',69,'e',71]
for i in range(len(hero)):
if i%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
break
print()
\ 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