pu369com

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 33 下一页

2023年4月14日

功能不够用?使用C++编写通达信插件及接入Python(一)

摘要: 第一次尝试,参照:http://www.xiaoyunyun.net/index.php/archives/53.html 和 https://blog.csdn.net/wiowei/article/details/121466094 在绑定DLL环节失败了 第二次尝试:参照:https://zh 阅读全文

posted @ 2023-04-14 15:48 pu369com 阅读(4068) 评论(0) 推荐(0)

2023年4月13日

selenium操作网页再练手

摘要: # coding:utf-8 from selenium.common import NoSuchElementException, TimeoutException, StaleElementReferenceException from selenium.webdriver.support im 阅读全文

posted @ 2023-04-13 17:57 pu369com 阅读(35) 评论(0) 推荐(0)

2023年4月12日

Python+selenium点击网页上指定坐标

摘要: from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains def click_locxy(dr, x, y, left_click=True): ''' dr:浏览器 阅读全文

posted @ 2023-04-12 18:38 pu369com 阅读(1322) 评论(0) 推荐(1)

python一招完美搞定Chromedriver的自动更新问题

摘要: from webdriver_manager.core.utils import get_browser_version_from_os from webdriver_manager.chrome import ChromeDriverManager import requests, re, tim 阅读全文

posted @ 2023-04-12 16:59 pu369com 阅读(654) 评论(0) 推荐(0)

python 将一个列表分为多个列表 指定分成几个列表 指定列表元素个数

摘要: l = [i for i in range(23)] def split(a, n): k, m = divmod(len(a), n) return (a[i*k+min(i, m):(i+1)*k+min(i+1, m)] for i in range(n)) l_split = split(l 阅读全文

posted @ 2023-04-12 10:29 pu369com 阅读(56) 评论(0) 推荐(0)

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 阅读(26) 评论(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 阅读(33) 评论(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 阅读(185) 评论(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 阅读(92) 评论(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 阅读(726) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 33 下一页

导航