2020年5月12日
摘要: import timeimport threadingfrom threading import Threadfrom concurrent.futures import ThreadPoolExecutor, wait, ALL_COMPLETED, as_completeddef sleep_t 阅读全文
posted @ 2020-05-12 18:00 jaysonteng 阅读(155) 评论(0) 推荐(0) 编辑
摘要: import time from multiprocessing import Pool from concurrent.futures import ThreadPoolExecutor, wait, ALL_COMPLETED, as_completed def thread_func(data 阅读全文
posted @ 2020-05-12 16:41 jaysonteng 阅读(5461) 评论(0) 推荐(0) 编辑
摘要: 思路: 1、获取带滑块的图片 2、获取不带滑块、完整的图片 3、比较两张图片中不一样的地方,找到滑块的坐标 4、通过滑块坐标来拖动浏览器 代码: import random import time from PIL import Image from io import BytesIO import 阅读全文
posted @ 2020-05-12 11:38 jaysonteng 阅读(2497) 评论(0) 推荐(0) 编辑
摘要: 思路: 1、先将DataFrame数据转换为numpy 2、通过numpy来修改对角线值 3、再将数据转换为DataFrame 代码: import pandas as pd import numpy as np # 数据 df = pd.DataFrame(np.arange(16).reshap 阅读全文
posted @ 2020-05-12 10:58 jaysonteng 阅读(1834) 评论(0) 推荐(0) 编辑