Mimicry time by turtle-Python3
所属分类:Windows编程
开发工具:Python
文件大小:1KB
下载次数:1
上传日期:2018-02-08 09:56:17
上 传 者:
南柯一梦朋
说明: 模拟时钟,时钟根据计算机系统时间实时动态更新,利用Python3中turtle库实现。
(The clock is simulated and the clock is updated in real time according to the time of the computer system, and the turtle Library in Python3 is implemented.)
文件列表:
Mimicry time by turtle-Python3\Mimicry time by turtle-Python3.py (2340, 2017-11-15)
Mimicry time by turtle-Python3 (0, 2018-02-08)
模拟时钟,时钟根据计算机系统时间实时动态更新。
需要建立五个turtle对象:
1个turtle: 绘制外表盘
3个turle: 模拟表针行为
1个turtle: 输出表盘上的文字
第一步:建立Turtle对象并初始化。
表盘绘制Turtle对象
文本输出Turtle对象
3个指针Turtle对象
第二步:静态表盘绘制
第三步:根据时钟更新表针位置和时间信息
说明:需要导入turtle库和datetime库
近期下载者:
相关文件:
收藏者: