当前位置:网站首页>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
边栏推荐
- Arduino uno + DS1302 simple time acquisition and serial port printing
- Least squares system identification class II: recursive least squares
- Calculate the average of N numbers in the index group of X, and return the number that is less than the average and closest to the average through formal parameters
- When a programmer is disturbed 10 times a day, the consequences are amazing!
- LeetCode Algorithm 24. Exchange the nodes in the linked list in pairs
- STM32F103C8T6实现呼吸灯代码
- What is the preferential account opening policy of securities companies now? Is it safe to open an account online now?
- Scala 基礎 (二):變量和數據類型
- Kubernetes essential tools: 2021
- TCP congestion control details | 1 summary
猜你喜欢

20:第三章:开发通行证服务:3:在程序中,打通redis服务器;(仅仅是打通redis服务器,不涉及具体的业务开发)

Summary of all knowledge points of C language

Teach you to learn dapr - 4 Service invocation

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

GUI+SQLServer考试系统

Screenshot of the answers to C language exercises

经典同步问题

【MATLAB项目实战】基于卷积神经网络与双向长短时(CNN-LSTM)融合的锂离子电池剩余使用寿命预测

Memory partition model

r329(MAIX-II-A(M2A)资料汇总
随机推荐
Solution for filtering by special string of microservice
Redis migration (recommended operation process)
C语言 头哥习题答案截图
JS tutorial using electron JS build native desktop application ping pong game
Memory partition model
Greenplum数据库故障分析——semop(id=2000421076,num=11) failed: invalid argument
Science | giant bacteria found in mangroves challenge the traditional concept of nuclear free membrane
Which position does Anxin securities rank? Is it safe to open an account?
Scala Basics (II): variables and data types
Several forms of buffer in circuit
我把它当副业月入3万多,新手月入过万的干货分享!
108. 简易聊天室11:实现客户端群聊
数字藏品与NFT到底有何区别
Find all primes less than or equal to Lim, store them in AA array, and return the number of primes
Leetcode 1170. 比较字符串最小字母出现频次(可以,已解决)
最小二乘系统辨识课 中篇:递归最小二乘
去中心化NFT交易协议将击败OpenSea
[Error] ld returned 1 exit status
What does the inner structure of the neural network "alchemy furnace" look like? An interpretation of the thesis by the doctor of Oxford University
day10每日3题(1):逐步求和得到正数的最小值