当前位置:首页 > Web开发 > 正文

pred_type=3040) 4、获取当前时间的年-月-日(strftime() 函数接收以时间元组

2024-03-31 Web开发

一、在操纵信息果然网网页的时候呈现一些问题及解决要领
1、将信息插入相应的列,按照列的数字返回字母,简单的了解了openpyxl模块

from openpyxl.utils import get_column_letter, column_index_from_string # 按照列的数字返回字母 print(get_column_letter(2)) # B # 按照字母返回列的数字 print(column_index_from_string('Al')) # 38

2、去除姓名前的空格

k1 = rpa_c4f7d7.encode('unicode_escape') k2 = k1.decode('unicode_escape') rpa_c4f7d7 = k2.strip()

3、验证码识另外脚本

from rpa.captcha.captcha import Captcha img_path = "C://Users//闫佳怡//Desktop//验证码截图//1.jpg" captcha = Captcha().get_captcha_text(way="1", picpath=img_path, pred_type="3040")

4、获取当前时间的年-月-日(strftime() 函数接收以时间元组,并返回以可读字符串暗示确当地时间,,格局由参数format决定)

import datetime dayTime = datetime.datetime.now().strftime('%Y-%m-%d') print(dayTime)

在操纵信息果然网网页的时候呈现一些问题及解决要领

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/32679.html