Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson9_1
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
d1cdf1bc
authored
Mar 27, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
7928389c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
j.py
store.py
j.py
0 → 100644
View file @
d1cdf1bc
score1
=
{
'语文'
:
91
,
'数学'
:
88
,
'英语'
:
85
}
score2
=
{
'语文'
:
97
,
'数学'
:
98
,
'英语'
:
90
}
score3
=
{
'语文'
:
95
,
'数学'
:
100
,
'英语'
:
93
}
score
=
{
'11'
:
score1
,
'12'
:
score2
,
'13'
:
score3
}
while
True
:
print
(
"想退出请输入q"
)
name
=
input
(
"名字:"
)
print
(
"*"
*
100
)
if
name
in
score
:
info
=
score
[
name
]
print
(
"*"
*
100
)
for
k
,
v
in
info
.
items
():
print
(
k
,
v
)
print
(
"*"
*
100
)
elif
name
==
"q"
:
break
else
:
print
(
"*"
*
100
)
print
(
"鸡你太美!你似乎没有分数,已经为你自动分配技校."
)
print
(
"补救方法:冲值30元即可重新输入"
)
print
(
"*"
*
100
)
\ No newline at end of file
store.py
View file @
d1cdf1bc
...
@@ -2,5 +2,5 @@ goods = {'å¯å£å¯ä¹':3,'旺仔牛奶':4,'农夫山泉':1,'è¾£æ¡':3,'巴西çƒ
...
@@ -2,5 +2,5 @@ goods = {'å¯å£å¯ä¹':3,'旺仔牛奶':4,'农夫山泉':1,'è¾£æ¡':3,'巴西çƒ
goods
.
pop
(
"农夫山泉"
)
goods
.
pop
(
"农夫山泉"
)
print
(
goods
)
print
(
goods
)
# 请将"农夫山泉"删掉,并打印出新的商品信息
# 请将"农夫山泉"删掉,并打印出新的商品信息
print
(
goods
[
"鸡"
]
=
100
)
goods
[
"鸡"
]
=
100
print
(
goods
)
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