当前位置:网站首页>Turtle cartography
Turtle cartography
2022-06-26 16:49:00 【Guichen 548】
Turtle mapping functions to be referenced :
import turtle
Basic operation :
1. Forward :turtle.forward( distance )
2. Reach the specified coordinates :turtle.goto(x,y)
3. Lift Pen :turtle.penup()
turtle.pendown()
4. A circle :turtle.circle( radius )
5. The width of the brush :turtle.width( Width )
6. Brush color :turtle.color(" Color English ")
practice : Olympic rings

The code is as follows :
import turtle
turtle.width(5)
turtle.circle(50)
turtle.penup()
turtle.goto(110,0)
turtle.pendown()
turtle.color("red")
turtle.circle(50)
turtle.penup()
turtle.goto(-110,0)
turtle.pendown()
turtle.color("blue")
turtle.circle(50)
turtle.penup()
turtle.goto(-55,-55)
turtle.pendown()
turtle.color("yellow")
turtle.circle(50)
turtle.penup()
turtle.goto(+55,-55)
turtle.pendown()
turtle.color("green")
turtle.circle(50)
The results are shown in the sample diagram
边栏推荐
- Interpretation of new plug-ins | how to enhance authentication capability with forward auth
- 当一个程序员一天被打扰 10 次,后果很惊人!
- Leetcode 1170. 比较字符串最小字母出现频次(可以,已解决)
- 安信证券排名第几位?开户安全吗?
- LeetCode Algorithm 24. 两两交换链表中的节点
- Arduino uno + DS1302 simple time acquisition and serial port printing
- I regard it as a dry product with a monthly income of more than 30000 yuan for sidelines and more than 10000 yuan for novices!
- Teach you to learn dapr - 3 Run the first with dapr Net program
- 最小二乘系统辨识课 中篇:递归最小二乘
- 对NFT市场前景的7个看法
猜你喜欢

5G未平6G再启,中国引领无线通信,6G的最大优势在哪里?

pybullet机器人仿真环境搭建 5.机器人位姿可视化

我把它当副业月入3万多,新手月入过万的干货分享!

Make up the weakness - Open Source im project openim about initialization / login / friend interface document introduction

Dialogue with the senior management of Chang'an Mazda, new products will be released in Q4, and space and intelligence will lead the Japanese system

对NFT市场前景的7个看法

进军AR领域,这一次罗永浩能成吗?
Teach you to learn dapr - 6 Publish subscription

Kubecon China 2021 Alibaba cloud special session is coming! These first day highlights should not be missed

知道这几个命令让你掌握Shell自带工具
随机推荐
I regard it as a dry product with a monthly income of more than 30000 yuan for sidelines and more than 10000 yuan for novices!
Développer un opérateur basé sur kubebuilder (démarrer)
Greenplum database fault analysis - semop (id=2000421076, num=11) failed: invalid argument
Solution for filtering by special string of microservice
[from deleting the database to running] the end of MySQL Foundation (the first step is to run.)
C语言 头哥习题答案截图
LeetCode Algorithm 24. 两两交换链表中的节点
【小5聊】毕业8年,一直在追梦的路上
Scala Basics (II): variables and data types
最小二乘系统辨识课 中篇:递归最小二乘
Convert the decimal positive integer m into the number in the forward K (2 < =k < =9) system and output it in bits
Data analysis - numpy quick start
Call the random function to generate 20 different integers and put them in the index group of institute a
Codeforces Round #802 (Div. 2)
Mono 的一些实例方法
Codeforces Round #802 (Div. 2)
对话长安马自达高层,全新产品将在Q4发布,空间与智能领跑日系
Day10 daily 3 questions (2): count the number of the largest groups
数字藏品与NFT到底有何区别
day10每日3题(3):数组中的字符串匹配