阳光宅男xxb
高级信息系统项目管理工程师,熟练java python等编程语言,从事大数据,网络爬虫等行业多年。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【已解决】pdfplumber解析pdf报错:pdfminer.pdfdocument.PDFEncryptionError: Unknown filter: param={}param=%r“ %
已解决python中使用pdfplumber库解析pdf报错的问题,错误现象为: raisePDFEncryptionError("Unknown filter: param=%r" % param)pdfminer.pdfdocument.PDFEncryptionError: Unknown filter: param={}原创 2024-12-22 11:53:33 · 286 阅读 · 0 评论 -
【已解决】python面试、竞赛编程问题:最长递增子序列和旅行商问题(TSP)
在面试、竞赛以及实际应用中,有几个常见的问题,比如今天尝试解决的:最长递增子序列和旅行商问题(TSP)。本文针对这两个问题如何分析和求解并使用python编程实现给出了详细的步骤,供参考学习。原创 2024-11-25 10:20:11 · 334 阅读 · 0 评论 -
【已解决】报错:ValueError: you must pass an index及TypeError: first argument must be an iterable of pandas o
已成功解决使用pandas操作dataframe数据时报错的问题:ValueError: If using all scalar values, you must pass an index、以及进行数据合并concat报错:TypeError: first argument must be an iterable of pandas objects, you passed an object of type "DataFrame"。原创 2024-10-15 18:00:51 · 468 阅读 · 2 评论 -
已解决Error loading “OSError: [WinError 126] 找不到指定的模块。..site-packages\torch\lib\fbgemm.dll“ or one of..
解决“OSError: [WinError 126] 找不到指定的模块。 Error loading "OSError: [WinError 126] 找不到指定的模块。 Error loading "D:\A_Software\D_ProgramSoftware\Anaconda\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.原创 2024-08-28 11:35:24 · 1309 阅读 · 0 评论 -
【已解决】R代码绘图控制台出现Hit <Return> to see next plot的问题(也适用网页端调用执行R代码出现此问题的情况)
已解决R代码绘图控制台出现Hit to see next plot的问题,解决方法同样也适用网页端调用执行R代码出现此问题的情况。原创 2024-08-05 17:24:44 · 498 阅读 · 0 评论 -
【已解决】mysql数据库插入数据报错:java.sql.SQLSyntaxErrorException: Unknown error 1054及常见mysql错误代码和解决方法
【已解决】mysql数据库插入数据报错:java.sql.SQLSyntaxErrorException: Unknown error 1054、Unknown error 1146原创 2024-07-04 11:25:06 · 887 阅读 · 0 评论 -
【已解决】DataFrame转json报错:DataFrame columns must be unique for orient=‘records‘以及转json返回web包含nan和inf的问题
【已解决】DataFrame调用to_json报错:DataFrame columns must be unique for orient='records'.已解决DataFrame转json返回web前端之后包含nan和inf的问题,导致解析json报错原创 2024-06-17 20:53:24 · 413 阅读 · 0 评论 -
【解决】如何在JavaScript中终止forEach循环
【解决】如何在JavaScript中终止forEach循环原创 2024-06-17 20:28:12 · 786 阅读 · 1 评论 -
(已解决)Django项目部署到服务器后访问后台admin样式缺失报错:Refused to apply style from ‘http:...static/admin/css/login.css.
(已解决)Django项目部署到服务器后访问后台admin样式缺失报错:Refused to apply style from 'http:...static/admin/css/login.css.原创 2024-06-11 16:21:46 · 662 阅读 · 0 评论 -
(彻底解决)Django项目nginx反向代理报错:*78 upstream timed out (110: Connection timed out) while reading upstream
(彻底解决)Django项目nginx反向代理报错:*78 upstream timed out (110: Connection timed out) while reading upstream原创 2024-05-31 21:03:39 · 1192 阅读 · 0 评论 -
(已解决)Bootstrap精美弹出框模态框modal,实现js向modal传递数据
(已解决)Bootstrap精美弹出框模态框modal,实现js向modal传递数据原创 2024-05-30 17:42:26 · 432 阅读 · 0 评论 -
(已解决)jspdf + html2canvas实现导出html为PDF文件(高清、分页)解决图片和表格被分割截断以及滚动条的问题。(含源码及详细解释)
jspdf + html2canvas实现导出html为PDF文件(高清、分页)解决图片和表格被分割截断以及滚动条的问题。(含源码及详细解释)原创 2024-05-30 15:41:41 · 3521 阅读 · 0 评论 -
(已解决)centos Linux系统中批量安装R第三方包,并解决运行过程中出现的 syntax error near unexpected token `done‘错误
已解决在centos Linux系统中批量安装R第三方包,并解决了再运行过程中出现的syntax error near unexpected token `done'错误原创 2024-05-21 17:08:08 · 329 阅读 · 0 评论 -
(已解决)在服务器(linux,centos)中调用R绘制图形之后保存报错,而在Windows中正常
在服务器(linux,centos)中调用R绘制图形之后保存报错,报错情况为:type = “cairo“ is unavailable. trying Xlib“,X11 is not available等。但是我在Windows的电脑上运行没有问题。原创 2024-05-19 18:11:27 · 195 阅读 · 0 评论 -
(已解决)Linux centos中R绘图保存报错In png() : type = “cairo“ is unavailable. trying Xlib“,X11 is not available
已解决:Linux centos中R绘图(png、jpeg、svg)报错无法保存图片,一开始报错报错:Error in png() : X11 is not available之后根据网上的一番操作又报错:In png() : type = "cairo" is unavailable . trying Xlib。且在R中使用capabilities()命令查看png、jpeg等都显示为Fal原创 2024-05-19 17:56:47 · 462 阅读 · 0 评论 -
数据库MySQL面试题(经典、高频)
数据库MySQL面试题(经典、高频)原创 2024-05-17 16:28:39 · 298 阅读 · 0 评论 -
已解决:python django调用R报错解决汇总:expected str instance、 ‘rpy2.rinterface.SexpClosure‘、DecodeError: ‘utf-8‘
rpy2python django调用R报错解决方法汇总:sequence item 0: expected str instance, NoneType found、Conversion 'rpy2py' not defined for objects of type ''、UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 33: invali原创 2023-10-11 11:11:24 · 454 阅读 · 0 评论 -
【已解决】django views.py中报错TypeError: Object of type QuerySet is not JSON serializable
【已解决】django views.py中报错TypeError: Object of type QuerySet is not JSON serializable原创 2023-08-11 10:39:18 · 593 阅读 · 0 评论 -
【已解决】django 后台view.py中将数据转为json报错:TypeError: Object of type datetime is not JSON serializable。
【已解决】django 后台view.py中将数据转为json报错:TypeError: Object of type datetime is not JSON serializable。之后又报错TypeError: In order to allow non-dict objects to be serialized set the safe parameter to False.原创 2023-08-08 11:23:44 · 552 阅读 · 0 评论 -
【已解决】django报错No changes detected和No migrations to apply错误。django修改model 更新数据表报错。
【已解决】django报错No changes detected和No migrations to apply错误。django修改model 更新数据表报错。原创 2023-07-11 09:05:53 · 1360 阅读 · 0 评论 -
【解决】SQL错误(1452) : Cannot add or update a child row: a foreign key constraint fails( ‘datasetdb‘.‘ #s
【已解决】mysql报错SQL错误(1452) : Cannot add or update a child row: a foreign key constraint fails( 'datasetdb'.' #sql-533_ 3565', CONSTRAINT 'FK_ parent code' FOREIGN KEY ( parent_ code ) REFERENCES 't district' ('code' ))原创 2023-07-11 09:06:11 · 1992 阅读 · 0 评论 -
【已解决】svn: E230001: Server SSL certificate verification failed: certificate issued for a different ho
已解决SVN连接项目仓库报错svn:E170013:Unable to connect to a repository at URL 'https://xx.xx.xx.xx/svn/xxx'svn:E230001: Server SSL certificate verification failed: certificate issued for a different hostname, issuer is not trusted原创 2023-06-26 10:32:56 · 2442 阅读 · 0 评论 -
【已解决】有些网站播放视频时,视频播放器无法拖动进度,无法快进的问题
【已解决】有些网站播放视频时,视频播放器无法拖动进度,无法快进的问题原创 2023-06-26 10:31:14 · 28076 阅读 · 0 评论 -
【已解决】requests报错SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify fail
已解决,在python中使用requests请求数据时报错:ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)原创 2023-07-03 08:14:37 · 4736 阅读 · 0 评论 -
【已解决】 selenium解析页面链接打包为jar文件后报错element.getAttribute()处空指针NullPointerException
解决java使用selenium+chrome解析页面链接时发现只能得到链接的文本,使用element.getAttribute()获取链接等其它属性时报错(错误指示element.getAttribute()处空指针)。原创 2023-06-12 07:18:23 · 1964 阅读 · 0 评论 -
【已解决】python操作文件常见错误解决汇总:FileNotFoundError: [Errno 2] No such file or directory、Permission denied等错误
【已解决】python操作文件常见错误:FileNotFoundError: [Errno 2] No such file or directory、Permission denied等错误原创 2023-06-20 07:19:23 · 11454 阅读 · 0 评论 -
Windows下cpu部署运行清华大学ChatGLM-6B语言模型(详解)
Windows下cpu部署运行清华大学ChatGLM-6B语言模型(详解)原创 2023-07-03 08:16:18 · 1955 阅读 · 0 评论 -
【已解决】github访问慢,网页连接错误,git命令克隆下载报 Timed out 和 OpenSSL SSL_read: Connection was reset, errno 10054错误
【已解决】github访问慢,网页经常打不开,git命令克隆下载报 Timed out 和 OpenSSL SSL_read: Connection was reset, errno 10054错误原创 2023-06-07 10:43:10 · 2072 阅读 · 0 评论 -
selenium启动chrome报错unknown error: cannot create temp dir for user data dir can not find chrome binary
selenium启动chrome报错unknown error: cannot create temp dir for user data dir can not find chrome binary原创 2023-06-05 08:14:59 · 2201 阅读 · 0 评论 -
已解决python使用pymysql向mysql数据库插入数据报错pymysql.err.DataError: (1366, ‘‘)
我从某个网页上抓取并解析了一段html代码,然后将html代码转为utf-8格式,之后将html代码作为数据表的一个属性存入mysql数据库中:#找到html中某个节点的html# 保存数据到数据库params = (我把sql插入数据放到数据库中执行也是同样的错误,如下图:这说明程序逻辑应该没有问题,猜测应该是数据或者数据类型、格式等与数据库要求的不一致的问题。原创 2023-05-23 15:02:00 · 3379 阅读 · 0 评论 -
【已解决】使用selenium启动谷歌Chrome浏览器打开指定网站,页面空白,而使用其它浏览器手动打开该网站则正常
【已解决】使用selenium启动谷歌Chrome浏览器打开指定网站,页面空白,而使用其它浏览器手动打开该网站则正常原创 2023-05-23 07:18:15 · 10527 阅读 · 3 评论 -
已解决pywin32使用报错ImportError: DLL load failed while importing pywintypes: 找不到指定的模块。
已解决在安装pywin32库后import 引入win32com.client后,报错mod = importlib.util.module_from_spec(spec)ImportError: DLL load failed while importing pywintypes: 找不到指定的模块。原创 2023-05-19 11:28:00 · 6729 阅读 · 0 评论 -
已解决:pip安装报错 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after con
已解决:pip安装第三方库pygal报错 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(, 'Connection to pypi.org tim原创 2023-05-11 08:53:45 · 14509 阅读 · 1 评论 -
已解决实现心型图案时报错TypeError: ‘float‘ object cannot be interpreted as an integer
已成功解决使用range在生成数列时,报错TypeError: 'float' object cannot be interpreted as an integer原创 2023-05-06 11:50:36 · 2569 阅读 · 0 评论 -
已解决,使用pip命令报错:D:\python\python.exe: No module named pip
python升级pip: python -m pip install --upgrade pip 执行过程中出现了错误,之后再使用pip命令报错:D:\python\python.exe: No module named pip原创 2023-04-28 09:29:00 · 5248 阅读 · 0 评论 -
已解决:centos7 linux使用yum 命令时报错Another app is currently holding the yum lock;waiting for it to exit...
使用yum install命令安装软件时,报错:/var/run/yum.pid已被锁定,PID为3357的另一个程序正在运行。Another app is currently holding the yum lock;waiting for it to exit...另一个应用程序是:PackageKit....原创 2023-04-26 11:07:25 · 3572 阅读 · 0 评论 -
已解决Bad RequestThe browser (or proxy) sent a request that this server could not understand.
已解决运行scrapydweb后打开浏览器,输入访问地址:http://127.0.0.1:5000/后,浏览显示400Bad RequestThe browser (or proxy) sent a request that this server could not understand.错误。原创 2023-04-23 10:18:46 · 6826 阅读 · 0 评论 -
已解决:使用pip命令时,WARNING: Ignoring invalid distribution -crapyd d: program fi1es\python\Lib\site-package
已解决,在使用pip install或者pip show等pip命令时,总是打印出警告信息:WARNING: Ignoring invalid distribution -crapyd d: program fi1es\python\Lib\site-package原创 2023-04-21 11:23:10 · 5459 阅读 · 0 评论 -
(已解决)sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: metadata
已解决,在启动scrapydweb后报错in _get_current_objectraiseRuntimeError(unbound_message) from None RuntimeError: Working outside of application context.sqlite3.OperationalError: no such table: metadata原创 2023-04-21 15:12:35 · 4268 阅读 · 0 评论 -
(已解决)关键词爬取百度搜索结果,返回百度安全验证,网络不给力,请稍后重试,无法请求到正确数据的问题(2023最新)
已解决,使用关键词进行百度搜索,然后爬取搜索结果,请求数据后,返回的是百度安全验证,网络不给力,请稍后重试。无法请求到正确数据。且尝试在header中增加Accept参数还是不行原创 2023-04-21 09:54:02 · 11329 阅读 · 24 评论