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
e38960d7
authored
Jun 04, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
73efb8ce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
quiz.py
quiz.py
View file @
e38960d7
# 直接运行以下代码,说说你的发现:
name
input
(
"你他吗叫啥"
)
list_hero
=
[
'赵一'
,
30
,
'丁二'
,
37
,
'孙五'
,
52
,
'王猛'
,
89
,
'周亮'
,
98
'吴宇毛'
,
0
]
power
=
int
(
input
(
你
tm
臂力至是多数
))
dict_hero
=
{
'赵一'
:
30
,
'丁二'
:
37
,
'孙五'
:
52
,
'王猛'
:
89
,
'周亮'
:
98
,
'吴宇毛'
,
0
}
list_hero
=
[
'啊毛毛'
,
1
,
'叶猴'
,
0
,
'梁好'
,
12
,
'邓某婷'
]
print
(
len
(
list_hero
))
print
(
len
(
dict_hero
))
for
i
in
range
(
len
(
list_hero
)):
\ No newline at end of file
if
1
%
2
==
1
and
list
hero
[
i
]
>=
power
.
list_hero
.
insert
(
i
-
1
,
Name
)
list_hero
.
insert
(
1
,
power
)
print
(
dict_hero
)
dict_hero
=
(
'fjrjrtj'
:
1
)
print
(
dict_hero
)
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