Commit 16d23657 by BellCodeEditor

auto save

parent 12f13fd3
Showing with 20 additions and 8 deletions
......@@ -9,12 +9,6 @@ k=input("你的臂力值是多少")
# 归档处
hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98,'张宇',100]
for i in range(len(hero)):
hero[0]="c"
hero[0+1]=k
# 打印出臂力最强的三个人和他们对应的臂力值:
for i in range(len(hero)):
if i%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
print(hero)
\ No newline at end of file
#1
#1
#k={"F":70,"C":67,"h":104,"i":105,"s":115}
#print(k["C"])
#2
#student={"Jonh":10,"Sam":11,"Lily":9,"Anna":10,"Daming":10,"Helen":12}
#student["Lily"]=10
#student["小红"]=10
#print(student)
#3
#student={"第一格":"猪八戒"}
#student["第一格"]="唐三藏"
#student["第二格"]="孙行者"
#student["第三格"]="沙和尚"
#student["第四格"]="猪八戒"
#print(student["第四格"])
#4
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