Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-1_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
c4adac7d
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
a11fda6f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
11 deletions
1.p'y
1.py
diy1.py
1.p'y
View file @
c4adac7d
import turtle
pen=turtle.Pen()
pen.write("你好",front=("Times",20,"normal"))
turtle.done()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
1.py
View file @
c4adac7d
import
pygame
import
turtle
from
pygame
import
locals
pen
=
turtle
.
Pen
()
pygame
.
init
()
pen
.
write
(
"你好"
,
font
=
(
"Times"
,
20
,
"normal"
))
screen
=
pygame
.
display
.
set_mode
((
660
,
660
))
turtle
.
done
()
while
True
:
\ No newline at end of file
for
event
in
pygame
.
event
.
get
():
if
event
.
type
==
locals
.
QUIT
:
exit
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
diy1.py
View file @
c4adac7d
# 利用write()帮助悟空给诺依回信吧~
# 利用write()帮助悟空给诺依回信吧~
import
turtle
import
turtle
#
pen=turtle.Pen()
pen
=
turtle
.
Pen
()
#
pen.write("你好呀",font=("Times",100,"normal"))
pen
.
write
(
"你好呀"
,
font
=
(
"Times"
,
100
,
"normal"
))
pen1
=
turtle
.
Pen
()
pen1
=
turtle
.
Pen
()
pen1
.
left
(
45
)
pen1
.
left
(
45
)
pen1
.
forward
(
100
)
pen1
.
forward
(
100
)
...
...
This diff is collapsed.
Click to expand it.
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