mnbn.net
当前位置:首页 >> DrAw turtlE >>

DrAw turtlE

import turtle#draw first circleturtle.penup()turtle.goto(0,-200)turtle.pendown()turtle.circle(200)#draw second circleturtle.penup()turtle.goto(0,-150)turtle.pendown()turtle.circle(150)#draw third circleturtle.penup()turtle.goto...

import turtle def draw(x,y): turtle.clear() while True: turtle.forward(200) turtle.left(144) if abs(turtle.pos()) < 1: break draw(0,0) turtle.onscreenclick(draw) turtle.mainloop()

import turtledef draw(x,y): turtle.clear() while True: turtle.forward(200) turtle.left(144) if abs(turtle.pos()) < 1: breakdraw(0,0)turtle.onscreenclick(draw)turtle.mainloop()

import turtle def drawsnake(rad, angle, len, neckrad): for i in range(len): turtle.circle(rad,range) turtle.circle(-rad,range) turtle.circle(rad...

是要表白么,嘿嘿,希望这个代码能帮到你哦~(参数不满意可以自己调) import turtleimport mathwn = turtle.Screen()wn.setworldcoordinates(-2, -2, 2, 2)alex = turtle.Turtle()alex.color("red")alex.pensize(2)alex.penup()alex.speed(0)wa...

python turtle画4个同心圆方法 import turtle #draw first circle turtle.penup() turtle.goto(0,-200) turtle.pendown() turtle.circle(200) #draw second circle turtle.penup() turtle.goto(0,-150) turtle.pendown() turtle.circle(150) #dr...

网站首页 | 网站地图
All rights reserved Powered by www.mnbn.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com