Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-5-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
16d23657
authored
Jan 22, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
12f13fd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
diy.py
实践.py
diy.py
View file @
16d23657
...
...
@@ -9,12 +9,6 @@ k=input("你的臂力值是多少")
# 归档处
hero
=
[
'赵一'
,
30
,
'丁二'
,
37
,
'孙五'
,
52
,
'王猛'
,
89
,
'周亮'
,
98
,
'张宇'
,
100
]
for
i
in
range
(
len
(
hero
)):
hero
[
0
]
=
"c"
hero
[
0
+
1
]
=
k
# 打印出臂力最强的三个人和他们对应的臂力值:
for
i
in
range
(
len
(
hero
)):
if
i
%
2
==
1
and
hero
[
i
]
>=
power
:
hero
.
insert
(
i
-
1
,
name
)
hero
.
insert
(
i
,
power
)
print
(
hero
)
\ No newline at end of file
实践.py
0 → 100644
View file @
16d23657
#1
#1
#k={"F":70,"C":67,"h":104,"i":105,"s":115}
#print(k["C"])
#2
#student={"Jonh":10,"Sam":11,"Lily":9,"Anna":10,"Daming":10,"Helen":12}
#student["Lily"]=10
#student["小红"]=10
#print(student)
#3
#student={"第一格":"猪八戒"}
#student["第一格"]="唐三藏"
#student["第二格"]="孙行者"
#student["第三格"]="沙和尚"
#student["第四格"]="猪八戒"
#print(student["第四格"])
#4
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