diff --git a/4.py b/4.py new file mode 100644 index 0000000..205e905 --- /dev/null +++ b/4.py @@ -0,0 +1,20 @@ +import turtle +screen=turtle.Screen() +screen.bgcolor("light blue") +pen=turtle.Pen() +pen.penup() +pen.goto(100,-100) +pen.write("hi",font=("Times",20,"normal")) +pen.hideturtle() +pen1=turtle.Pen() +pen1.pencolor("red") +pen1.pensize(5) +len=60 +pen1.left(45) +pen1.forward(100) +pen1.circle(50,180) +pen1.right(90) +pen1.circle(50,180) +pen1.forward(100) +pen1.hideturtle() +turtle.done() diff --git a/diy3.py b/diy3.py index 8d700b2..6fe9343 100644 --- a/diy3.py +++ b/diy3.py @@ -1,7 +1,7 @@ message = "诺依,周末一起去看漫展吧" length = len(message) i = 0 -while i < length +while i < length: element = message[i] print(element) i += 1 \ No newline at end of file