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
3149aecc
authored
Feb 26, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
db51081b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
100 additions
and
7 deletions
小石潭记.py
小石潭记.py
View file @
3149aecc
import
turtle
#import turtle
import
turtle
pen
=
turtle
.
Pen
()
pen
.
write
(
"小石潭记
\n
陶渊明
\n
从小丘西行百二十布,
\n
隔篁竹,闻水声,如鸣佩环,心乐之,
\n
伐竹取道,下见小潭,水尤清冽.
\n
全石以为底,进岸,卷石底以出.
\n
为坻,为屿,为堪,为岩.
\n
青树翠蔓,蒙络摇缀,参差披拂.
\n
潭中鱼可百许头,皆若空游无所依.
\n
日光下澈,"
,
font
=
(
"Times"
,
20
,
"normal"
))
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
#import turtle
#en = turtle.Pen()
#pen.write("小石潭记\n陶渊明\n从小丘西行百二十布,\n隔篁竹,闻水声,如鸣佩环,心乐之,\n伐竹取道,下见小潭,水尤清冽.\n全石以为底,进岸,卷石底以出.\n为坻,为屿,为堪,为岩.\n青树翠蔓,蒙络摇缀,参差披拂.\n潭中鱼可百许头,皆若空游无所依.\n日光下澈,",font=("Times",20,"normal"))
#pen.hideturtle()
#turtle.done()
#i=0
#while i<=5:
#i=i+1
#if i==2:
#continue
#print(i)
i
=
5
username
=
"phyon"
userpassword
=
"123456"
while
True
:
if
i
>
0
:
i
-=
1
name
=
input
(
"请输入用户名:"
)
password
=
input
(
"请输入密码:"
)
if
name
!=
username
:
print
(
"重新输入用户名:"
)
continue
if
password
!=
userpassword
:
print
(
"密码错误,重新输入:"
)
continue
if
name
==
username
and
password
==
userpassword
:
print
(
"登录成功,欢迎来到贝尔编程。"
)
break
else
:
print
(
"账号已锁定"
)
exit
()
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