03 2020 档案

摘要:from math import* from time import* scale=15 p=1 q=2 print("执行开始".center(scale//2, "-")) start = perf_counter() for i in range(scale+1): p=sqrt((1-sqr 阅读全文
posted @ 2020-03-24 10:39 Judy-dd 阅读(128) 评论(0) 推荐(0) 编辑
摘要:一、turtle库的概述:turtle(海龟)库是turtle绘图体系的Python实现,Python语言的标准库之一,入门级的图形绘制函数库。 turtle的原理:turtle(海龟)是一种真实的存在,有一只海龟,其实在窗体正中心,在画布上游走,走过的轨迹形成了绘制的图形,海龟由程序控制,可以变换 阅读全文
posted @ 2020-03-20 15:23 Judy-dd 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-15 14:09 Judy-dd 阅读(102) 评论(0) 推荐(0) 编辑
摘要:import turtle as t t.pensize(3) t.pencolor("purple") t.fillcolor("red") t.begin_fill() t.seth(60) for i in range(3): t.fd(200) t.right(120) t.penup() 阅读全文
posted @ 2020-03-11 17:11 Judy-dd 阅读(110) 评论(0) 推荐(0) 编辑
摘要:import turtle as t t.setup(500,500) t.seth(30) t.pensize(3) t.color("black") for i in range(3): t.fd(150) t.right(120) t.penup() t.fd(50) t.pendown() 阅读全文
posted @ 2020-03-11 16:09 Judy-dd 阅读(162) 评论(0) 推荐(0) 编辑
摘要:import turtle turtle.setup(500,500) turtle.fillcolor("red") turtle.begin_fill() for i in range(5): turtle.fd(100) turtle.right(144) turtle.end_fill() 阅读全文
posted @ 2020-03-11 16:01 Judy-dd 阅读(1016) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示