第一期 Python 程式設計入門共學營作業任務十


https://static.coderbridge.com/img/tylin1127/3aa2389cb4984dfeaac09e910920ec2d

import turtle as tu
import math

tu.showturtle()
tu.forward(300)
tu.right(120)
tu.forward(200)
tu.right(120)
tu.forward(200)
tu.left(120)
tu.forward(200)
tu.left(120)
tu.forward(300)
tu.left(120)
tu.forward(200)
tu.left(120)
tu.forward(200)
tu.right(120)
tu.forward(200)
tu.penup()
tu.goto(300,0)
tu.pendown()
tu.circle(math.sqrt(3)*100)
tu.penup()
tu.goto(320,math.sqrt(3)*10)
tu.pendown()
tu.circle(math.sqrt(3)*100 + 20)
tu.done()

P.S.想畫魔動王無敵水王的魔法陣,但第二個圓一直有問題,繳交時限要到了,只好先交了QQ

程式設計實作

#第一期Python程式設計入門共學營






留言討論