草庐IT

has-dropdown

全部标签

python接收微信消息报'HTMLParser' object has no attribute 'unescape'错误

我的博客一直有个想法,想要弄个微信机器人,然而出师不利,刚开始就碰壁了先上代码,这个是用来接收消息的,是个测试脚本#!/usr/bin/python#coding:utf-8importitchatdefwrite_infomation(text_value):print(text_value)@itchat.msg_register(itchat.content.TEXT)defget_reply(msg):write_infomation(msg.text)itchat.auto_login()itchat.run()我连接微信用的itchatitchat.auto_login()正常跳出

【PlayWright】报错:AttributeError: 'PlaywrightContextManager' object has no attribute '_playwright'的可能解决方案

1.问题分析1.1.公司云桌面win7系统把之前C盘中自带的py3.7环境给还原了,之前跑得好好的PlayWright案例不能运行了2.解决过程2.1.参考网上的解决方案,说是node的版本问题,但是我将之前可以运行的V12.22.12版本回退到V12.9.1以后,还是不行,但是我发现我的报错信息中,没有网上的这一段Node.jsisonlysupportedonWindows8.1,WindowsServer2012R2,orhigher.SettingtheNODE_SKIP_PLATFORM_CHECKenvironmentvariableto1skipsthischeck,butNod

【PlayWright】报错:AttributeError: 'PlaywrightContextManager' object has no attribute '_playwright'的可能解决方案

1.问题分析1.1.公司云桌面win7系统把之前C盘中自带的py3.7环境给还原了,之前跑得好好的PlayWright案例不能运行了2.解决过程2.1.参考网上的解决方案,说是node的版本问题,但是我将之前可以运行的V12.22.12版本回退到V12.9.1以后,还是不行,但是我发现我的报错信息中,没有网上的这一段Node.jsisonlysupportedonWindows8.1,WindowsServer2012R2,orhigher.SettingtheNODE_SKIP_PLATFORM_CHECKenvironmentvariableto1skipsthischeck,butNod

分析解释selenium:DeprecationWarning: executable_path has been deprecated, please pass in 和打开浏览器闪退问题

问题一:报错:DeprecationWarning:executable_pathhasbeen          我们在解决chrom版本和驱动版本的问题后(如果还没有解决,可以私信我给你们chrome和chromedriver的包)写完基础的代码后会发现报错:url='http://www.baidu.com'path='chromedriver.exe'browser=webdriver.Chrome(path)browser.get(url)DeprecationWarning:executable_pathhasbeendeprecated,pleasepassinaServiceo

分析解释selenium:DeprecationWarning: executable_path has been deprecated, please pass in 和打开浏览器闪退问题

问题一:报错:DeprecationWarning:executable_pathhasbeen          我们在解决chrom版本和驱动版本的问题后(如果还没有解决,可以私信我给你们chrome和chromedriver的包)写完基础的代码后会发现报错:url='http://www.baidu.com'path='chromedriver.exe'browser=webdriver.Chrome(path)browser.get(url)DeprecationWarning:executable_pathhasbeendeprecated,pleasepassinaServiceo

bug处理记录:com.fasterxml.jackson.core.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 9)): has to be escaped using backslash to be included in string value at [Source:

1.报错:com.fasterxml.jackson.core.JsonParseException:Illegalunquotedcharacter((CTRL-CHAR,code9)):hastobeescapedusingbackslashtobeincludedinstringvalueat[Source:(PushbackInputStream);line:2,column:21]2.导致原因:测试时是使用swagger测试接口的,下面的bin字段的值是复制过来的,bin的值表面上看是有空格的存在,其实是一些特殊字符,删除掉特殊字符就可以解决报错了。向接口中传递json如下{"bin

bug处理记录:com.fasterxml.jackson.core.JsonParseException: Illegal unquoted character ((CTRL-CHAR, code 9)): has to be escaped using backslash to be included in string value at [Source:

1.报错:com.fasterxml.jackson.core.JsonParseException:Illegalunquotedcharacter((CTRL-CHAR,code9)):hastobeescapedusingbackslashtobeincludedinstringvalueat[Source:(PushbackInputStream);line:2,column:21]2.导致原因:测试时是使用swagger测试接口的,下面的bin字段的值是复制过来的,bin的值表面上看是有空格的存在,其实是一些特殊字符,删除掉特殊字符就可以解决报错了。向接口中传递json如下{"bin

前端跨域问题的解决方案Access to XMLHttpRequest at ‘http..’ from origin ‘null‘ has been blocked by CORS policy

前言:在前端发出Ajax请求的时候,有时候会产生跨域问题,报错如下:AccesstoXMLHttpRequestat'http://127.0.0.1/api/post'fromorigin'null'hasbeenblockedbyCORSpolicy:No'Access-Control-Allow-Origin'headerispresentontherequestedresource.针对以上问题,本文提供两种解决方案,CORS中间件和JSONP方法。在具体介绍解决方法之前,我们先明确以下前提条件:1、这两个方法都需要通过后端修改接口情况,无法单独通过前端解决跨域问题。2、什么是跨域?什

前端跨域问题的解决方案Access to XMLHttpRequest at ‘http..’ from origin ‘null‘ has been blocked by CORS policy

前言:在前端发出Ajax请求的时候,有时候会产生跨域问题,报错如下:AccesstoXMLHttpRequestat'http://127.0.0.1/api/post'fromorigin'null'hasbeenblockedbyCORSpolicy:No'Access-Control-Allow-Origin'headerispresentontherequestedresource.针对以上问题,本文提供两种解决方案,CORS中间件和JSONP方法。在具体介绍解决方法之前,我们先明确以下前提条件:1、这两个方法都需要通过后端修改接口情况,无法单独通过前端解决跨域问题。2、什么是跨域?什

Pandas 创建DataFrame提示:type object ‘object‘ has no attribute ‘dtype‘

pandas版本0.25.3importpandasaspdsymbol_info_columns=['1','持仓方向','持仓量','持仓收益率','持仓收益','持仓均价','当前价格','最大杠杆']#v3symbol_config={'BTC':'BTC-USDT-210924','LTC':'LTC-USDT-210924','EOS':'EOS-USDT-210924','ETH':'ETH-USDT-210924','XRP':'XRP-USDT-210924','FIL':'FIL-USDT-210924'}symbol_info=pd.DataFrame()#dates=p