在操作信息公开网网页的时候出现一些问题及解决方法

一、在操作信息公开网网页的时候出现一些问题及解决方法
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)
原文地址:https://www.cnblogs.com/yanjiayi098-001/p/12118512.html