xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 2.39KB
    文件類型: .py
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-01-30
  • 語言: Python
  • 標簽: python??clock??

資源簡介

用Python做一個鐘表

資源截圖

代碼片段和文件信息

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()
????forward(length*1.1)
????end_poly()
????handForm?=?get_poly()
????#注冊Turtle形狀命令register_shape(nameshape=None)
????register_shape(name?handForm)

def?Init():
????global?secHand?minHand?hurHand?printer
????mode(“l(fā)ogo“)#?重置Turtle指向北
????#建立三個表針Turtle并初始化
????#第二個參數(shù)為長度
????mkHand(“secHand“?115)
????mkHand(“minHand“??95)
????mkHand(“hurHand“?80)
????secHand?=?Turtle()
????secHand.shape(“secHand“)
????minHand?=?Turtle()
????minHand.shape(“minHand“)
????hurHand?=?Turtle()
????hurHand.shape(“hurHand“)
????for?hand?in?secHand?minHand?hurHand:
???

評論

共有 條評論