将特定的草图移至Python Turtle模块中的特定点

问题描述

我想编写一个图形时钟,它具有三个指针,一个指针指向小时,另一个指针指向分钟,最后一个指针指向第二个指针。时间与本地PC时间同步,因此除非我结束程序,否则我需要时钟指针像真实时钟一样无限移动。如何确定移动时钟指针?有功能吗?我在Turtle的文档中进行了查找,但没有找到。也许我错过了一些事情。这是我尚未完成的代码

import time
import os
import cursor
import turtle

cursor.show()
s = turtle.Turtle()
turtle.bgcolor('Black')
hour = int(time.strftime('%H'))
minute = int(time.strftime('%M'))
second = int(time.strftime('%s'))
s.pensize(5)
s.pencolor('Red')
s.circle(200)
s.penup()
s.goto(0,200)
s.pendown()
s.left(90)
s.forward(100) #how can I make this rotate 30 degrees???

turtle.done()

预先感谢您:))

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)