# 穿越火线_单机
# coding=utf-8
import turtle
from datetime import *
def Skip(step):
turtle.penup()
turtle.forward(step)
turtle.pendown()
def mkHand(name, length):
# Turtle,Turtle
turtle.reset()
Skip(-length * 0.1)
# dfhgjhdfshjk
turtle.begin_poly()
turtle.forward(length * 1.1)
# fjgjjfggjhgshdfg
turtle.end_poly()
# dgjhjjg
handForm = turtle.get_poly()
turtle.register_shape(name, handForm)
def Init():
global secHand, minHand, hurHand, printer
# Turtle
turtle.mode("logo")
# Turtle
mkHand("secHand", 135)
mkHand("minHand", 125)
mkHand("hurHand", 90)
secHand = turtle.Turtle()
secHand.shape("secHand")
minHand = turtle.Turtle()
minHand.shape("minHand")
hurHand = turtle.Turtle()
hurHand.shape("hurHand")
for hand in secHand, minHand, hurHand:
hand.shapesize(1, 1, 3)
hand.speed(0)
# Turtle
printer = turtle.Turtle()
# turtle
printer.hideturtle()
printer.penup()
def SetupClock(radius):
# hjyubu
turtle.reset()
turtle.pens