pu369com

2023年4月11日

python中的线程threading.Thread()

摘要: import threading import time def saySorry(i): if int(i)%2==0: time.sleep(3) print("亲爱的,我错了,我能吃饭了吗?", str(i)) if __name__ == "__main__": for i in range 阅读全文

posted @ 2023-04-11 20:41 pu369com 阅读(13) 评论(0) 推荐(0) 编辑

Python queue (队列)

摘要: import threading import time import queue def producer(): count = 1 while 1: q.put('No.%i' % count) print('Producer put No.%i' % count) time.sleep(1) 阅读全文

posted @ 2023-04-11 19:48 pu369com 阅读(26) 评论(0) 推荐(0) 编辑

python——tkinter图形化界面及threading多线程

摘要: # coding:utf-8 from tkinter import * from tkinter.scrolledtext import ScrolledText # 文本滚动条 import threading import time def count(i): for k in range(1 阅读全文

posted @ 2023-04-11 18:36 pu369com 阅读(172) 评论(0) 推荐(0) 编辑

利用pandas 和 ttk.Treeviews制作xlsx视图工具

摘要: import tkinter as tk from tkinter import ttk import pandas as pd import tkinter.messagebox as msgbox def Start(): msgbox.showinfo('提示', 'OK') fp = pd. 阅读全文

posted @ 2023-04-11 18:25 pu369com 阅读(65) 评论(0) 推荐(0) 编辑

pytdx多进程示例

摘要: # encoding=utf-8 import math from pytdx.hq import TdxHq_API import pathlib import multiprocessing as mp from multiprocessing import Pool class myTdx: 阅读全文

posted @ 2023-04-11 15:15 pu369com 阅读(543) 评论(0) 推荐(0) 编辑

导航