Commit d7a38d27 by BellCodeEditor

save project

parent 432e4c47
Showing with 6 additions and 9 deletions
......@@ -2,13 +2,9 @@ b=['袁术',10,'夏侯惇',20,'曹操',30,'关羽',40,'刘备',50,'张飞']
a1=input('请输入你的名字')
a2=input('请输入你的臂力值')
for i in range(len(b)):
if i%2==1
if b[i]>a2:
if i%2==1:
if b[i]>int(a2):
b.insert(i-1,a1)
b.insert(i,a2)
b.insert(i,a1)
print(b)
print(c)
b.pop(-1)#b.pop(3)
c.extend('文丑颜良')
print(b)
break
print(b)
\ 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