Commit 3149aecc by BellCodeEditor

auto save

parent db51081b
Showing with 100 additions and 7 deletions
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()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment