From 457b5d434c993b963c008a88746932ee78500b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E6=98=AF=E4=BA=BA?= <463625542@qq.com> Date: Fri, 25 Oct 2024 08:55:37 +0000 Subject: [PATCH] =?UTF-8?q?add=20python/=E9=9A=8F=E6=9C=BA=E7=82=B9?= =?UTF-8?q?=E5=BD=A9=E7=94=BB.py.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 我是人 <463625542@qq.com> --- ...72\347\202\271\345\275\251\347\224\273.py" | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 "python/\351\232\217\346\234\272\347\202\271\345\275\251\347\224\273.py" diff --git "a/python/\351\232\217\346\234\272\347\202\271\345\275\251\347\224\273.py" "b/python/\351\232\217\346\234\272\347\202\271\345\275\251\347\224\273.py" new file mode 100644 index 0000000..016d7e2 --- /dev/null +++ "b/python/\351\232\217\346\234\272\347\202\271\345\275\251\347\224\273.py" @@ -0,0 +1,20 @@ +import turtle +import random +color='' +width=x=y=0 +t=turtle.Turtle() +t.hideturtle() +t.speed(0) +t.penup() +for i in range(random.randint(500,1000)): + t.penup() + width=random.randint(1,100) + x=random.uniform(-205.00,205.00) + y=random.uniform(-205.00,205.00) + color='#'+random.choice(['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'])+random.choice(['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'])+random.choice(['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'])+random.choice(['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'])+random.choice(['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'])+random.choice(['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'])#突出 + t.pensize(width) + t.color(color) + t.goto(x,y) + t.pendown() + t.goto(x-0.01,y) +turtle.done() \ No newline at end of file -- Gitee