随笔分类 -  画图

海龟等
摘要:{ "cells": [ { "cell_type": "markdown", "id": "3d99180e", "metadata": {}, "source": [ "## 画布知识\n" ] }, { "cell_type": "code", "execution_count": null, 阅读全文
posted @ 2023-04-19 22:30 朱阿九 阅读(78) 评论(0) 推荐(0) 编辑
摘要:# -*- coding: utf-8 -*-"""Created on Tue Apr 13 21:31:58 2021 @author: Administrator"""#coding=utf-8import turtlespiral=turtle.Turtle()ninja=turtle.Tu 阅读全文
posted @ 2023-04-19 22:30 朱阿九 阅读(15) 评论(0) 推荐(0) 编辑
摘要:#coding=utf-8import turtlepainter= turtle.Turtle()painter.pencolor("blue") for i in range(30): painter.forward(30) #数字是代表半径 painter.left(100) painter. 阅读全文
posted @ 2023-04-19 22:28 朱阿九 阅读(16) 评论(0) 推荐(0) 编辑
摘要:#北京奥运会吉祥录制import turtleturtle.title('冰墩墩')turtle.speed(40) # 可以自己调节速度# 左手turtle.penup()turtle.goto(177, 112)turtle.pencolor("lightgray")turtle.pensize 阅读全文
posted @ 2023-04-19 22:28 朱阿九 阅读(22) 评论(0) 推荐(0) 编辑
摘要:# -*- coding: utf-8 -*-"""Created on Tue Apr 13 21:31:12 2021 @author: Administrator"""#coding=utf-8import turtle#画五角星(动态)spiral=turtle.Turtle() for i 阅读全文
posted @ 2023-04-19 22:25 朱阿九 阅读(41) 评论(0) 推荐(0) 编辑
摘要:from turtle import *import time setup(800,600,0,0)speed(0)penup()seth(90)fd(340)seth(0)pendown() speed(5)begin_fill()fillcolor('red')circle(50,30) for 阅读全文
posted @ 2023-04-19 22:25 朱阿九 阅读(78) 评论(0) 推荐(0) 编辑

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