Commit 92099a18 by BellCodeEditor

save project

parent 6c47a9e3
Showing with 11 additions and 6 deletions
a=['吕布']
b=['袁术','公孙瓒','关羽','张飞',]
b=['袁术','公孙瓒','关羽','张飞','刘备']
b=['袁术','夏侯淳','曹操','关羽']
b.remove('关羽')
print(b)
......
for i in range(1,10):
for j in range(1,10):
print(j,'*',i,'=',(j*i),end=" ")
print()
\ No newline at end of file
name='a'
power=66
hero=['s',30,'d',37,'f',52,'g',89,'h',98]
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(hero)
\ 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