本来想做个病毒,结果不会在屏幕上写字,就有点麻烦
Python版本3.8,用的Notepad++编辑
本来想做个病毒,结果不会在屏幕上写字,就有点麻烦
Python版本3.8,用的Notepad++编辑
import turtle
turtle.setup(width=500,height=200)
turtle.speed(1)
turtle.hideturtle()
turtle.penup()
turtle.back(100)
turtle.write("桔子code", align="right", font=("宋体", 22, "bold"))
turtle.mainloop()
用turtle.write()在画布上写字