Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_4
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
813d4b60
authored
Oct 29, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
edf396b1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
diy4.py
diy5.py
ttg。py
yyyy。
diy4.py
View file @
813d4b60
city
=
[
"纽约"
,
"华盛顿"
,
"桃园到"
,
"洛杉矶"
,
"芝加哥"
,
"旧金山"
]
rais
=
input
(
"你去哪"
)
if
rais
in
city
:
print
(
"你能"
+
rais
)
else
:
print
(
"没"
+
rais
)
\ No newline at end of file
list_hero
=
[
'赵一'
,
30
,
'丁二'
,
37
,
'孙五'
,
52
,
'王猛'
,
89
,
'周亮'
,
98
]
dict_hero
=
{
'赵一'
:
30
,
'丁二'
:
37
,
'孙五'
:
52
,
'王猛'
:
89
,
'周亮'
:
98
}
print
(
len
(
list_hero
))
print
(
len
(
dict_hero
))
\ No newline at end of file
diy5.py
0 → 100644
View file @
813d4b60
name
=
input
(
'你叫啥名啊?'
)
power
=
int
(
input
(
'你臂力多少啊?'
)
dict_hero
=
{
'猴三'
:
10
,
'猴一'
:
21
,
'猴五'
:
22
,
'猴队长'
:
29
,
'猴七'
:
30
}
print
(
dict_hero
)
\ No newline at end of file
ttg。py
deleted
100644 → 0
View file @
edf396b1
-- "a/ttg\343\200\202py"
yyyy。
deleted
100644 → 0
View file @
edf396b1
-- "a/yyyy\343\200\202"
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