Commit dff0b615 by BellCodeEditor

save project

parent 567c7ee5
Showing with 20 additions and 2 deletions
...@@ -10,4 +10,22 @@ bro2=["刘备",161,9.1] ...@@ -10,4 +10,22 @@ bro2=["刘备",161,9.1]
bro3=["张飞",166,8.3] bro3=["张飞",166,8.3]
bros[0]="关羽" bros[0]="关羽"
bros[1]="刘备" bros[1]="刘备"
print(bros) print(bros)
\ No newline at end of file a=['hx']
a.append('yl')
a.append('wc')
print(a)
a=['lb']
b=['ys','gsz','gy','zf','lb','cc']
a.extend(b[2:5])
print(a)
name=input("xm:")
a=input("blz:")
power=int(a)
hero=['1',30,'2',37,'3',52,'4',89,'5',98]
for i in range(len(hero)):
if i%2==1 and power<=hero[i]:
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