Commit 53074973 by BellCodeEditor

save project

parent fd86c900
Showing with 16 additions and 12 deletions
name=input('名字是啥')
power=int(input('考试成绩'))
list_hero{'1':88,'2':96,'3':98,'4':65}
for i in range(len(hero))
ifi%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
break
\ No newline at end of file
#name=input('名字是啥')
#power=int(input('考试成绩'))
#dict_hero{'1':88,'2':96,'3':98,'4':65}
#for i in range(len(hero))
dict_hero={'六':88,'五':96,'四':98,'三':65}
dict_hero['三']=66
print(dict_hero)
\ No newline at end of file
name='1'
power=66
hero=['0',30,'2',37,'3',52,'4',89,'5',98]
or i in range(len(hero))
for i in range(len(hero))
ifi%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
breakf
\ No newline at end of file
break
\ 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