Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-2
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
06adbee5
authored
Nov 02, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
64efca05
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
13.py
jkd.py
刚刚。.py
13.py
View file @
06adbee5
hero
=
[
'猴三'
,
10
,
'猴一'
,
21
,
'猴五'
,
22
,
'猴队长'
,
29
,
'猴七'
,
30
]
hero
=
{
'猴三'
:
10
,
'猴一'
:
21
,
'猴五'
:
22
,
'猴队长'
:
29
,
'猴七'
:
30
}
print
(
hero
[
'猴队长'
])
hero
[
'猴七'
]
=
32
hero
[
'猴七'
]
=
32
print
(
hero
)
print
(
hero
)
hero
[
'猴十'
]
=
25
print
(
hero
)
jkd.py
0 → 100644
View file @
06adbee5
KFC
=
{
'汉堡'
:
20
,
'可乐'
:
8
,
'鸡翅'
:
12.5
,
'薯条'
:
9.9
,
'蛋挞'
:
8
,
'全鸡'
:
43
,
'瑞幸'
:
12
,}
y
=
input
(
"你想要吃什么呀"
)
if
y
in
KFC
:
print
(
"你好,你的"
+
y
+
"需要"
+
str
(
KFC
[
y
])
+
"元"
)
else
:
print
(
"抱歉,没有您想要的商品,请重新选购"
)
\ No newline at end of file
刚刚。.py
0 → 100644
View file @
06adbee5
city
==
[
'纽约'
,
'华盛顿'
,
'桃源岛'
,
'洛杉矶'
,
'芝加哥'
,
旧金山
]
city
==
[
'纽约'
,
'华盛顿'
,
'桃源岛'
,
'洛杉矶'
,
'芝加哥'
,
旧金山
]
raise
=
input
(
'你想去哪里啊?'
)
if
raise
in
city
:
print
(
'可以乘坐飞机通往'
+
raise
)
else
:
print
(
'没有'
+
raise
+
'这座城市'
)
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