
Lv.1
滑稽(皮),使我快乐
签名:(¦3[▓▓] 碎叫碎叫,熬夜有风险 你要干什么 这么晚了你还不睡觉 下面什么东西都没有 真的什么都没有 我不骗你 唔。。。。
在 找徒弟!! 中回复
import turtle import random
t = turtle.Pen() colors = ['red', 'yellow', 'blue', 'green', 'orange', 'purple', 'gray', 'white']
t.speed(1000) turtle.bgcolor('black')
for x in range(100): a = random.randint(0, 7) b = random.randint(0, 50) x = random.randint((-300), 300) y = random.randint((-300), 300) t.pencolor(colors[a]) t.fillcolor(colors[a]) t.penup() t.goto(x, y) t.pendown() t.begin_fill() t.circle(b) t.end_fill()
2020-07-21T19:13:14 点赞:0
在 找徒弟!! 中回复
from tkinter import * tk23 = Tk() tk23.title("浏览器") p1 = Button(tk23, text=" A ", bg="red", fg="yellow") p2 = Button(tk23, text=" B ", bg="yellow", fg="black") p3 = Button(tk23, text=" C ", bg="blue", fg="white")
p1.pack() p2.pack() p3.pack()
tk23.mainloop()
2020-07-21T19:15:21 点赞:0