1 #验证码 2 #读取验证码网址、打开本地路径、写入、输入验证码 3 downpicture = urllib.request.urlopen(SecretCodeUrl).read() 4 local = open(address, ‘wb‘) 5 local.write(downpicture) 6 local.close() 7 print(u"请从桌面寻找你的验证码") 8 print (u"请输入验证码:") 9 SecretCode = input() 10 driver.find_element_by_id(‘txtSecretCode‘).send_keys(SecretCode)
时间: 2024-10-08 17:16:35