Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson9_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
68703273
authored
Jul 03, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
d6b86922
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
2 deletions
diy11.py
diy2.py
draw.py
draw1.py
kk.py
diy11.py
0 → 100644
View file @
68703273
a
=
{
'1'
:
3
,
'2'
:
5
,
'3'
:
7
,
'1'
:
10
,
'1'
:
15
}
print
(
a
)
\ No newline at end of file
diy2.py
View file @
68703273
score
=
{
'语文'
:
91
,
'数学'
:
88
,
'英语'
:
85
}
for
v
,
t
in
score
.
items
():
print
(
v
,
t
)
for
i
,
v
in
score
.
items
():
print
(
i
,
v
)
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
...
...
draw.py
0 → 100644
View file @
68703273
import
turtle
turtle
.
penup
()
turtle
.
goto
(
-
90
,
90
)
turtle
.
speed
(
1
)
turtle
.
pendown
()
turtle
.
fillcolor
(
"yellow"
)
turtle
.
begin_fill
()
for
i
in
range
(
4
):
turtle
.
forward
(
180
)
turtle
.
right
(
90
)
turtle
.
end_fill
()
turtle
.
forward
(
180
)
turtle
.
right
(
135
)
turtle
.
fillcolor
(
"red"
)
turtle
.
pencolor
(
"black"
)
turtle
.
begin_fill
()
turtle
.
goto
(
-
90
,
-
90
)
turtle
.
left
(
135
)
turtle
.
goto
(
90
,
-
90
)
turtle
.
left
(
90
)
turtle
.
forward
(
180
)
turtle
.
end_fill
()
turtle
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
draw1.py
0 → 100644
View file @
68703273
import
turtle
turtle
.
fillcolor
(
"red"
)
turtle
.
begin_fill
()
turtle
.
left
(
45
)
turtle
.
forward
(
100
)
turtle
.
circle
(
50
,
180
)
turtle
.
right
(
90
)
turtle
.
circle
(
50
,
180
)
turtle
.
forward
(
100
)
turtle
.
end_fill
()
turtle
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
kk.py
0 → 100644
View file @
68703273
a
=
input
(
"输入一个数:"
)
b
=
input
(
"输入第二个数:"
)
print
(
a
+
"+"
+
b
+
"="
+
str
(
int
(
a
)
+
int
(
b
)))
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