Commit 432e4c47 by BellCodeEditor

save project

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