Commit 6ee65a80 by BellCodeEditor

save project

parent 474e770c
Showing with 9 additions and 20 deletions
name1=input("name") students=["悟空","小贝","八戒","波奇"]
power1=input(("臂力值")) students.pop("八戒")
name=input("name") students.append("诺一")
power=input(("臂力值")) red=students[1:2]
name='刘强' blue=students[3;4]
power=66 message("诺一,周末一起去看漫展吧!")
hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98] for i in range(len(message))
for i in range(len(hero)): print(message)
if i%2==1 and hero[i]>=power: \ No newline at end of file
hero.insert(i-1,name)
hero.insert(i,power)
for i in range(len(hero)):
if i%2==1 and hero[i]>=power1:
hero.insert(i-1,name1)
hero.insert(i,power1)
break
print(hero)
c=hero[len(hero)-6:]
print(c)
\ 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