![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
turtle
图灵追慕者
计算机研究生,IT公司高级技术经理,从事人工智能的研究。
展开
-
2.基于turtle库的多彩图像及日期绘制
说明:利用python自带的海龟库turtle绘制多彩图像,并进行当前日期绘制。环境:python 3.6.8import turtleimport randomimport time__Pen = turtle.Pen()__Pen.hideturtle()turtle.bgcolor("#000000")colors = ['red', 'yellow', 'blue', 'green', 'orange', 'purple', 'white', 'gray'..原创 2021-01-06 17:14:33 · 427 阅读 · 0 评论 -
1.基于turtle库的小动物绘制及分辨
说明:利用python自带的海龟库turtle绘制小动物,并进行动物名称猜测。环境:python 3.6.8import turtle as tt.colormode(255) def qusetion_One(): #猫 t.hideturtle() t.speed(20) t.color('black','yellow') t.begin_fill() t.forward(150).原创 2021-01-06 17:05:22 · 1699 阅读 · 0 评论