Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-5
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
8521d376
authored
Dec 05, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
55d55136
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
13 deletions
diy.py
diy.py
View file @
8521d376
scost
=
{
'小明'
:
77
,
'小王'
:
86
,
'小张'
:
99.5
,
'小红'
:
99
,
'小丽'
:
58
,
'小亮'
:
90
,
'笨蛋'
:
0
}
k
=
input
(
'请输入学生姓名:'
)
v
=
input
(
'请输入考试分数:'
)
if
k
in
scost
:
if
int
(
v
)
>
scost
[
k
]:
scost
[
k
]
=
int
(
v
)
print
(
k
+
'的新成绩'
+
v
+
'分上传成功'
)
else
:
print
(
'成绩未刷新'
)
else
:
scost
[
k
]
=
int
(
v
)
print
(
k
+
'同学,第一次成绩'
+
v
+
'分上传成功'
)
\ No newline at end of file
import
turtle
turtle
,
penup
()
turtle
.
goto
(
0
,
-
200
)
turtle
.
pendomn
()
turtle
.
circle
(
200
)
turtle
.
penup
turtle
.
goto
(
-
100
,
50
)
turtle
.
pendomn
()
turtle
.
fillcolor
(
"blue"
)
turtle
.
begin_fill
()
turtle
.
circle
(
20
)
turtle
.
end_fill
()
turtle
.
penup
()
turtle
.
goto
(
0
,
50
)
turtle
.
pendomn
()
turtle
.
circle
(
-
50
,
steps
=
3
)
turtle
.
penup
()
turtle
.
goto
(
-
150
,
-
70
)
turtle
.
pendomn
()
turtle
.
goto
(
0
,
-
170
)
turtle
.
penup
\ No newline at end of file
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