Message254078
| Author |
Anthony C |
| Recipients |
Anthony C |
| Date |
2015年11月05日.02:00:17 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1446688819.99.0.0895353718927.issue25552@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Making this simple code to mess with turtle well it seems like after awhile I have encountered the window = turtle.Screen() doesnt seem to even open it up only the shell window and does nothing afterwards. Its quite annoying especially trying to practice with it and it doesnt work.
import turtle
def draw_square(some_turtle) :
for i in range(1,5) :
some_turtle.forward(100)
some_turtle.right(90)
def draw_art() :
window = turtle.Screen()
window.bgcolor("red")
brad = turtle.Turtle()
brad.shape("turtle")
brad.color("blue")
brad.speed(2)
for i in range (1,4) :
draw_square(brad)
brad.right(10)
window.exitonclick() |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年11月05日 02:00:20 | Anthony C | set | recipients:
+ Anthony C |
| 2015年11月05日 02:00:19 | Anthony C | set | messageid: <1446688819.99.0.0895353718927.issue25552@psf.upfronthosting.co.za> |
| 2015年11月05日 02:00:19 | Anthony C | link | issue25552 messages |
| 2015年11月05日 02:00:18 | Anthony C | create |
|