Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson4_1
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
94ae7ba8
authored
Nov 03, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
ff4b44fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
12 deletions
1.py
diy1.py
1.py
0 → 100644
View file @
94ae7ba8
import
turtle
pen
=
turtle
.
Pen
()
for
i
in
range
(
4
):
pen
.
forward
(
200
)
pen
.
right
(
90
)
pen
.
right
(
45
)
pen
.
goto
(
200
,
-
200
)
pen
.
right
(
135
)
pen
.
forward
(
200
)
pen
.
goto
(
200
,
0
)
pen
.
goto
(
100
,
0
)
pen
.
goto
(
100
,
-
200
)
pen
.
penup
()
pen
.
goto
(
0
,
-
100
)
pen
.
pendown
()
pen
.
goto
(
200
,
-
100
)
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
diy1.py
View file @
94ae7ba8
username
=
"python"
userpasswork
=
".1111122"
name
=
input
(
"输入你的密码"
)
p
asswork
=
input
(
"输入你的密码"
)
# 如果用户输入的账号、密码正确,提示登陆成功
while
True
:
if
userpasswork
==
name
:
print
(
"登陆成功"
)
else
:
print
(
"登陆失败"
)
break
print
(
"错误,给我滚"
)
print
(
"来到编程"
)
import
turtle
pen
=
turtle
.
Pen
()
pen
.
circle
(
100
,
360
)
p
en
.
left
(
90
)
pen
.
forward
(
200
)
pen
.
penup
()
pen
.
goto
(
-
100
,
100
)
pen
.
right
(
90
)
pen
.
pendown
()
pen
.
forward
(
200
)
pen
.
hideturtle
()
turtle
.
done
(
)
\ 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