Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-2_DIY1
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
66bb5ffa
authored
Jul 20, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
99a8518a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
6 deletions
diy1.py
diy1.py
View file @
66bb5ffa
for
i
in
range
(
1
,
10
):
# 行
for
j
in
range
(
1
,
i
+
1
):
print
(
j
,
"*"
,
i
,
"="
,
i
*
j
,
end
=
"|"
)
print
()
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
len
=
screen
.
textinput
(
"50"
,
"50"
)
len
=
int
(
len
)
pen
=
turtle
.
Pen
()
pen
.
hideturtle
()
pen
.
write
(
"我左边的是个傻逼,天天吃印度的牛拉的佛屙呢,
\n
就是找算命先生算命,
\n
算命先生说“你算什么东西?”."
,
font
=
(
"Times"
,
15
,
"normal"
))
pen
.
hideturtle
()
len
=
50
pen
.
penup
()
pen
.
goto
(
50
,
100
)
pen
.
pendown
()
pen
.
pensize
(
5
)
pen
.
pencolor
(
"red"
)
pen
.
left
(
45
)
pen
.
forward
(
2
*
len
)
pen
.
circle
(
len
,
180
)
pen
.
right
(
90
)
pen
.
circle
(
len
,
180
)
pen
.
forward
(
2
*
len
)
turtle
.
done
()
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