diff --git a/diy.py b/diy.py index 0337676..0590936 100644 --- a/diy.py +++ b/diy.py @@ -1,5 +1,9 @@ -with open(r"C:\Users\XMBC\Desktop\text.txt","r",encoding="utf-8") as se: - p = se.read() - for a in p: - if '小兰:12本' in a: - print("在里面") \ No newline at end of file +import turtle +turtle.bgcolor("black") +turtle.speed(0) +colors = ["red","orange","yellow","green"] +for i in range(1,300): + turtle.forward(i) + turtle.pencolor(colors[i%4]) + turtle.right(91) +turtle.done() \ No newline at end of file