用户:fixer_nemo查看:3 回复:2 评论:3 创建时间:2023-07-06T11:29:06
【作品展示】

【作品介绍】
为什么错啦!!!为什么错啦!!!为什么错啦!!!为什么错啦!!!为什么错啦!!!为什么错啦!!!为什么错啦!!!为什么错啦!!!
【作品源代码】
import turtle
pen = turtle.Pen()
screen = turtle.Screen()
#绘制
position = []
for i in range(3):
for j in range(3):
pen.dot(50, "light skyblue")
pen.penup()
pen.goto((j*100, i*100)
position.append((j*100, i*100))
pen.pendown()
pen.dot(50, "skyblue")
#编号
list1=[3, 2, 1, 4, 7, 8, 9, 6, 5]
pen.pensize(5)
pen.pencolor("blue")
for i in list1:
num=int(screen.textinput("密码验证", "请输入一项数字"))
print(num)
pen.goto(list2[0-num])
pen.pendown()
pen.dot(25, "blue")
pen.hideturtle()
turtle.done()
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn