Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-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
dc5bfb68
authored
Apr 24, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
2bf50d75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
a.py
a.py
View file @
dc5bfb68
q
=
{
'旺仔牛逼糖'
:
223
,
'肥快乐'
:
10
}
s
=
input
(
'输入商品'
)
z
=
int
(
input
(
'输入商品数'
))
if
s
in
q
:
b
=
q
(
s
)
*
z
print
(
'您要的商品为'
+
's'
+
'数量为:'
+
str
(
z
)
+
'价格为'
+
str
(
q
[
s
]))
+
'一共str(b)'
)
\ No newline at end of file
w
=
{}
while
True
:
q
=
input
(
"你的名字是"
)
s
=
input
(
"你的成绩是"
)
if
q
in
w
:
if
int
(
s
)
>
w
[
q
]:
w
[
q
]
=
int
(
s
)
print
(
'skdsajdsalkjdksa'
)
else
:
print
(
'sdasdsasadaddsa'
)
else
:
w
[
q
]
=
int
(
s
)
print
(
q
+
"你第一次成绩上篡"
)
\ 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