Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-4-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
bb08b065
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
26e9e10d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
diy1.py
diy1.py
View file @
bb08b065
# 利用write()帮助悟空给诺依回信吧~
# 利用write()帮助悟空给诺依回信吧~
banana2
.
5
=
1
import
turtle
import
turtle
banana
=
turtle
.
Pen
()
banana
=
turtle
.
Pen
()
banana2
=
turtle
.
Screen
()
banana2
=
turtle
.
Screen
()
banana2
.
bgcolor
(
"yellow"
)
banana2
.
bgcolor
(
"yellow"
)
len
=
banana2
.
textinput
(
"基尼太美"
,
"banana"
)
bananasize
=
int
(
len
)
if
bananasize
>
100
:
print
(
"你*故意找茬是不是"
)
turtle
.
done
()
banana
.
penup
()
banana
.
penup
()
banana
.
goto
(
100
,
-
200
)
banana
.
goto
(
100
,
-
200
)
banana
.
write
(
"banana
\n
banana
\n
banana"
,
font
=
(
"Times,30,normal"
))
banana
.
write
(
"banana
\n
banana
\n
banana"
,
font
=
(
"Times,30,normal"
))
...
@@ -14,11 +18,10 @@ banana1.begin_fill()
...
@@ -14,11 +18,10 @@ banana1.begin_fill()
banana1
.
pensize
(
4
)
banana1
.
pensize
(
4
)
banana1
.
color
(
"blue"
,
"green"
)
banana1
.
color
(
"blue"
,
"green"
)
banana1
.
left
(
45
)
banana1
.
left
(
45
)
banana1
.
forward
(
banana
3
*
2
)
banana1
.
forward
(
banana
size
*
2
)
banana1
.
circle
(
banana
3
,
180
)
banana1
.
circle
(
banana
size
,
180
)
banana1
.
right
(
90
)
banana1
.
right
(
90
)
banana1
.
circle
(
banana
3
,
180
)
banana1
.
circle
(
banana
size
,
180
)
banana1
.
forward
(
banana
3
*
2
)
banana1
.
forward
(
banana
size
*
2
)
banana1
.
end_fill
()
banana1
.
end_fill
()
turtle
.
done
()
turtle
.
done
()
\ No newline at end of file
banana3
=
banana3
*
2
\ No newline at end of file
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