diff --git a/diy1.py b/diy1.py index 0030824..3fbf24d 100644 --- a/diy1.py +++ b/diy1.py @@ -1,9 +1,11 @@ -import random - -key="雷锋变成了女郎世界的繁华人精神境界夫人然后就多好多好" -message="诺伊,周末一起去看动漫展吧!" -abc=" " -for i in message: - str1=i - str2=random.choice(key) - str3=rand \ No newline at end of file +import turtle +pen=turtle.Pen() +screen=turtle.Screen() +screen.bgcolor("black") +colors=["green","red","orange","yellow"] +for i in range(1,300): + pen.pencolor(colors[i%4]) + pen.forward(i) + pen.right(91) +pen.hideturtle() +turtle.done() \ No newline at end of file