Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson10-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
0306c5a2
authored
Jun 09, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
70863d31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletions
assad.py
diy1.py
assad.py
0 → 100644
View file @
0306c5a2
scores
=
{
'语文'
:
89
,
'数学'
:
95
,
'英语'
:
80
}
def
get_average
(
scores
):
sum_score
=
0
for
k
,
y
in
scores
.
items
():
sum_score
+=
y
print
(
'现在的总分是
%
d'
%
sum_score
)
ave_score
=
sum_score
/
len
(
scores
)
print
(
'平均分是
%
d'
%
ave_score
)
get_average
(
scores
)
diy1.py
View file @
0306c5a2
#
灭霸
打了一个响指,宇宙一半生物都灰飞烟灭。
#
😫
打了一个响指,宇宙一半生物都灰飞烟灭。
# 剩下的复仇者联盟成员们依旧没有放弃反击灭霸的机会,他们决定利用最后一次行动机会,去把灭霸手里的宝石偷回来。
# 剩下的复仇者联盟成员们依旧没有放弃反击灭霸的机会,他们决定利用最后一次行动机会,去把灭霸手里的宝石偷回来。
# 如果偷回的宝石数是4颗及以上,便获得了打败灭霸的力量;如果偷回的宝石数是1-3颗,他们可以全员出动,殊死一搏;如果偷回的宝石数是0颗,只能尝试呼叫惊奇队长。
# 如果偷回的宝石数是4颗及以上,便获得了打败灭霸的力量;如果偷回的宝石数是1-3颗,他们可以全员出动,殊死一搏;如果偷回的宝石数是0颗,只能尝试呼叫惊奇队长。
# 最终,他们因为实力相差太大,1颗宝石都没有偷回来。
# 最终,他们因为实力相差太大,1颗宝石都没有偷回来。
...
...
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