1. import 引用一個寫好的程式
import turtle turtle是一個已經寫好的畫畫的程式,此處是直接引用
my_turtle=turtle.Turtle() my_turtle在這句話以後就有了畫畫的功能
my_turtle.shape("turtle")
my_turtle.forward(100) my_turtle向前走100步
my_turtle.right(90) my_turtle右轉90度
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
turtle.mainloop()
Congratulations @luciole-saison! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOP
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit