Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-3
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4457d6fd
authored
Jul 11, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
891acb1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
nfjdsfhusdhfugh.py
quiz.py
nfjdsfhusdhfugh.py
0 → 100644
View file @
4457d6fd
a1
=
{
'玉文'
:
91
,
'述学'
:
88
,
'婴语'
:
85
}
a2
=
{
'玉文'
:
97
,
'述学'
:
98
,
'婴语'
:
90
}
a3
=
{
'玉文'
:
95
,
'述学'
:
100
,
'婴语'
:
93
}
name
=
{
'sb'
:
a1
,
'5'
:
a2
,
'6'
:
a3
}
nam
=
input
(
"鸣子:"
)
if
nam
in
name
:
info
=
name
[
nam
]
else
:
print
(
'sb,输入错误'
)
for
k
,
v
in
info
.
items
():
print
(
k
,
v
)
quiz.py
View file @
4457d6fd
dict_a
=
{
'旺仔猴奶'
:
500
,
'渴口可乐'
:
30
,
'巴西烤猴肉'
:
102
,
'农夫三拳'
:
120
,
'老八秘制小汉堡'
:
5010
,
'巧克力味的冰只因凌'
:
300
,
'奥利给'
:
10000000
,
'焯菜'
:
30
}
haochide
=
input
(
'您想要什么呀?'
)
if
haochide
in
dict_a
:
print
(
哦,谢
~
,您想要的
+
haochide
+
居然在我的焯市里,需要支付
+
str
(
dict_a
[
haochide
])
+
美刀。
)
else
print
(
您想要的
+
haochide
+
不在我的焯市里,仅需要支付
10000000000000000000000000
美刀便可更新我的焯市,灰常的划算,买吧买吧买吧买吧买吧买吧买吧买吧买吧买吧买吧买吧买吧买吧买吧买吧买吧买吧买吧买吧买吧
~
)
# a={'小明':30,'小帅':38,'小美':100,'小强':68,'小乐':50}
# b=input('名字:')
# c=input('成绩:')
# if b in a:
# if int(c)>a[b]
# a[b]=int(c)
# print()
# else:
# print()
# else:
# a[b]=int(c)
# print()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment