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
bb118369
authored
Apr 30, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
eac7be35
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
0 deletions
1.py
2.py
4.3.py
1.py
0 → 100644
View file @
bb118369
import
turtle
screen
=
turtle
.
Screen
()
screen
.
bgcolor
(
"light blue"
)
len
=
screen
.
textinput
(
"100"
,
"100"
)
len
=
int
(
len
)
pen
=
turtle
.
Pen
()
turtle
.
color
(
"red"
)
turtle
.
begin_fill
()
turtle
.
left
(
45
)
turtle
.
forward
(
2
*
len
)
turtle
.
circle
(
len
,
180
)
turtle
.
right
(
90
)
turtle
.
circle
(
len
,
180
)
turtle
.
forward
(
2
*
len
)
turtle
.
end_fill
()
turtle
.
bgcolor
(
"black"
)
turtle
.
penup
()
turtle
.
goto
(
100
,
-
100
)
turtle
.
write
(
"你好!"
,
font
=
(
"黑体"
,
40
,
"bold"
))
turtle
.
hideturtle
()
turtle
.
down
2.py
0 → 100644
View file @
bb118369
while
True
:
user
=
"n"
ps
=
"222333"
b
=
input
(
"输入用户名:"
)
c
=
input
(
"输入密码:"
)
if
user
==
b
and
ps
==
c
:
print
(
"登录成功"
)
break
print
(
"欢迎来到魔兽世界"
)
\ No newline at end of file
4.3.py
0 → 100644
View file @
bb118369
username
=
"python"
userpassword
=
"123456"
while
True
:
a
=
input
(
"username:"
)
b
=
input
(
"userpassword"
)
if
username
==
a
and
userpassword
==
b
:
print
(
"登录成功"
)
break
print
(
"欢迎进入系统!"
)
\ 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