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
ada42cb7
authored
Mar 16, 2025
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
aa21e6d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
1.py
1.py
View file @
ada42cb7
dict
=
{}
dict
=
{
'马雨泽'
:
0.1
,
'同浩泽'
:
0.2
,
'魏子轩'
:
0.01
,
'依依老师'
:
1000
}
dict
[
'苹果'
]
=
90
a
=
input
(
"你要什么?"
)
dict
[
'梨'
]
=
70
if
a
in
dict
:
print
(
dict
)
print
(
"你买的"
+
a
+
"是"
+
str
(
dict
[
a
])
+
"元"
)
if
'梨'
in
dict
:
print
(
dict
[
'梨'
])
else
:
else
:
print
(
"不在"
)
print
(
"已经死了"
)
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