Commit cc496be0 by BellCodeEditor

save project

parent 97345632
Showing with 11 additions and 10 deletions
name=input("输入名字") sa=["关羽","刘备","张飞"]
power=input("输入力量") sa[0]="张飞"
hero=['wdwd',30,'ghwdgh',37,'erfgerf',52,'fewfwer',89,'cvbcb',98] sa[2]="关羽"
for i in range(len(hero)): print(sa)
if i%2==1 and power<hero[i]: sa.remove('刘备')
hero.insert(i-1,name) sa.pop(0)
hero.insert(i,power) print(sa)
break sa=['张飞']
print(hero) l=['刘备','关羽']
\ No newline at end of file sa.extend(l)
\ 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