Commit 6ee65a80 by BellCodeEditor

save project

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