摘要: import datetime import time import json import self as self import MessageToSlack import os import pymysql.cursors import random import sys import und 阅读全文
posted @ 2023-01-13 18:54 爱家家的卡卡 阅读(57) 评论(0) 推荐(0) 编辑
摘要: def date_choose(): # 定义JS去除日期控件的只读属性,让其可输入 self.driver.execute_script ('document.querySelector("#c-text-69").removeAttribute("readonly");') # 使用webdri 阅读全文
posted @ 2023-01-13 15:39 爱家家的卡卡 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 去重: from functools import reduce #导入排序模块 # 列表里的字典元素去重复 def list_dict_duplicate_removal(data_list): run_function = lambda x, y: x if y in x else x + [y 阅读全文
posted @ 2023-01-11 12:02 爱家家的卡卡 阅读(793) 评论(0) 推荐(0) 编辑
摘要: # 获取拖动按钮位置并拖动 def slide_auth(self): try: time.sleep(random.randint(6, 8)) # check have slide verify elements or not if (self.driver.find_element(By.ID 阅读全文
posted @ 2023-01-11 10:21 爱家家的卡卡 阅读(71) 评论(0) 推荐(0) 编辑
摘要: from playwright.sync_api import Playwright, sync_playwright, expect def run(playwright: Playwright) -> None: user_data_dir = "/Users/kaka/Library/Appl 阅读全文
posted @ 2023-01-11 10:19 爱家家的卡卡 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 原文链接: Python:获取“ 3年前的今天”的日期时间 Python: get datetime for '3 years ago today' 在Python中,如何获取" 3年前的今天"的datetime对象? 更新:FWIW,我不太在乎准确性……也就是说,今天是2月29日,我不在乎我的答案 阅读全文
posted @ 2023-01-11 10:09 爱家家的卡卡 阅读(369) 评论(1) 推荐(0) 编辑
摘要: 思路说明 使用locator定位到要拖动滑块元素,如元素名叫ele 获取元素ele的bounding_box含4分属性值:x,y,width,height 把鼠标移动到元素ele的中心点,中心点位置为:x+width/2,y+height/2 按下鼠标 计算出要移动的下一个位置,以长条滑块为例,拖动 阅读全文
posted @ 2023-01-09 17:43 爱家家的卡卡 阅读(745) 评论(0) 推荐(0) 编辑
摘要: kaka@KakadeMacBook-Pro PythonLearn % pip install pytest-playwright zsh: command not found: pip kaka@KakadeMacBook-Pro PythonLearn % python3 Python 3.1 阅读全文
posted @ 2023-01-06 10:04 爱家家的卡卡 阅读(388) 评论(0) 推荐(0) 编辑
摘要: version: '3.7' services: prometheus: container_name: "prometheus" restart: always image: prom/prometheus deploy: resources: limits: cpus: "0.20" memor 阅读全文
posted @ 2023-01-05 18:17 爱家家的卡卡 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 1.查看当前IP地址: ifconfig | grep inet 2.启动API: php artisan serve --host=0.0.0.0 3.查看larval的命令: php artisan list 4.开启docker,进入到对应文件夹 docker-compose up -d 5. 阅读全文
posted @ 2023-01-05 12:33 爱家家的卡卡 阅读(23) 评论(0) 推荐(0) 编辑