本文实例为大家分享了python交互式图形编程实例的第三部代码,供大家参考,具体内容如下
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#时钟
from turtle import *
from datetime import *
def Skip(step):
penup()
forward(step)
pendown()
def mkHand(name, length):
#注册Turtle形状,建立表针Turtle
reset()
Skip(-length*0.1)
begin_poly() #开始记录画笔坐标