基本Turtle语句


import turtle
turtle.showturtle()
turtle.write("Welcome to Python")
turtle.forward(100)
turtle.backward(100)
turtle.color('red')
turtle.penup()
turtle.goto(50,50)
turtle.circle(r ,ext ,step) #draw a circle with the specified radius extent and step
turtle.dot(diameter,color)#draw a circle with the specified diameter and color
turtle.pensize(width)
turtle.right(angle)
turtle.left(angle)   #turn the turtle left by the specified angle
turtle.home() #move the turtle to the (0,0) point
turtle.undo()
turtle.speed(s) #sets the speed of the turtle ,s is an integer between 1 and 10, 10 is the fastest 
turtle.done()



全部评论

相关推荐

Lorn的意义:你这种岗位在中国现在要么牛马天天加班,要么关系户进去好吃好喝,8年时间,真的天翻地覆了,对于资本来说你就说一头体力更好的牛马,哎,退伍没有包分配你真的亏了。
点赞 评论 收藏
分享
机械打工仔:有说的你怀疑一下就行了,直接问也太实诚了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务