Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson1_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
9f041b41
authored
Sep 10, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
7c73876a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
1.py
2.py
1.py
0 → 100644
View file @
9f041b41
dict
=
{
'可口可乐'
:
3
,
'旺仔牛奶'
:
5
,
'奥利奥'
:
6
,
'柠檬水'
:
4
,
'溜溜梅'
:
7
,
'溜溜果'
:
8
}
t
=
int
(
input
(
"你想要什么呀?"
))
if
t
in
dict
:
print
(
"您需要付"
+
t
+
"元"
)
if
t
in
dict
:
print
(
"对不起,没有您要的商品"
)
2.py
0 → 100644
View file @
9f041b41
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