Commit b2e1f02d by BellCodeEditor

save project

parent 1bf4da97
Showing with 37 additions and 10 deletions
username = "python" import turtle
userpassword = "123456"
while True: pen=turtle.Pen()
name = input("请输入用户名:") pen.speed(100)
password = input("请输入密码:") pen.hideturtle()
if name == username and password == userpassword:
print("登录成功!") for i in range(200)
print("用户名和密码错误!请重新输入") pen.forward()
print("欢迎来到贝尔编程!") \ No newline at end of file
\ No newline at end of file
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
pen.hideturtle()
screen.bgcolor("black")
color=["red","orange","yellow","light yellow","green","light green","light blue","blue","purple","pink"]
pen.speed(100)
for x in range(1,100):
pen.pencolor(color[x%2])
pen.forward(x)
pen.right(37)
turtle.done()
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.hideturtle()
pen.speed(200)
distance=1
for i in range(900):
pen.forward(distance)
pen.right(91)
distance+=1
turtle.done()
import
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