Commit 7ef4b715 by BellCodeEditor

auto save

parent 26b3b1d4
Showing with 47 additions and 14 deletions
a1={"语文":100,"数学":100,"英语":100}
a2={"语文":99,"数学":99,"英语":99}
a3={"语文":98,"数学":99,"英语":100}
s={"李金泽":a1,"王泽龙":a2,"马壹辰":a3}
info=input("名字:")
print("@"*30)
if info in s:
d=s[info]
for i,j in d.items():#keys() values() items()
print(i,j)
else:
print("没有这个人")
print("@"*30)
\ No newline at end of file
# pai=3.1415926
# r=int(input('请输入圆的半径:'))
# s=str(round(pai*r*r,2))
# c=str(round(2*pai*r,2))
# print("\n".join([s,c]))
# n=int(input())
# s=0
# if n%2==0:
# print('y e s')
# else:
# print('n o')
a,c,b=input()
if a>b:
print(a)
if b>a:
print(b)
# 和你的小伙伴用列表讲讲桃园结义的故事,并说说这其中运用了哪些列表知识:
# 来,我给你起个头~
# 从前啊,有三个bro,分别是:刘备、关羽、张飞...
bro1="关羽"
bro2="刘备"
bro3="张飞"
bros=["刘备","关羽","张飞"]
bro1=["关羽",160,8.5]
bro2=["刘备",161,9.1]
bro3=["张飞",166,8.3]
bros[0]="关羽"
bros[1]="刘备"
print(bros)
\ No newline at end of file
a1={"语文":90,"数学":88,"英语":100}
a2={"语文":90,"数学":89,"英语":99}
a3={"语文":70,"数学":88,"英语":60}
b={"小贝":a1,"悟空":a2,"诺伊":a3}
name=input("名字?")
print("*"*30)
if name in b:
c=b[name]
for k,v in c.items():
print(k,v)
else:
print("没有这个名字")
print("*"*30)
\ 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