验证码识别

from rpa.captcha.captcha import Captcha
c = Captcha()
log.info(tmp_file_path)
captcha_result = c.get_captcha_text("1", tmp_file_path, "2040")

播放语音

import win32com.client
speaker = win32com.client.Dispatch("SAPI.SpVoice")
speaker.Speak(RPA_intro)  #RPA_intro为需要读的数据

知识点

python默认编码格式是utf-8。
在python2.7中,可以通过sys.setdefaultencoding('gbk')设定默认编码格式
而在python3.3中sys.setdefaultencoding()这个函数已经没有了。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2021-06-14
  • 2021-07-25
  • 2022-12-23
  • 2021-08-03
  • 2021-05-04
  • 2021-12-11
相关资源
相似解决方案