如何用Python画一只狗狗 | 您所在的位置:网站首页 › 会飞的小狗怎么画 › 如何用Python画一只狗狗 |
Python画坤坤
2401_83809941: 不是哥们,python这么用的啊 如何用Python画一只狗狗——turtle基础小英雄Dui: 最后加一行done() 让窗口不要关闭 Python装逼代码2401_82769575: import tkinter as tk import random import threading import time color = ['red', '#356F9F'] color1 = random.choices(color) def dow(): window = tk.Tk() width = window.winfo_screenwidth() height = window.winfo_screenheight() a = random.randrange(0, width) b = random.randrange(0, height) window.title('Python') window.geometry("200x200" + "+" + str(a) + "+" + str(b)) tk.Label(window, text='病毒', bg=color1, font=('楷体', 17), width=15, height=10 ).pack() window.mainloop() threads = [] for i in range(1400): t = threading.Thread(target=dow) threads.append(t) time.sleep(0.0000000000000000000001) threads[i].start() Python画动漫人物(1)己 注 销*: 原因可多了,一般是你的解释器问题 Python画坤坤川上川下山: 可恶的小黑子 |
CopyRight 2018-2019 实验室设备网 版权所有 |