05 2021 档案
摘要:错误: File "C:\Program Files\python\lib\site-packages\pdfminer\pdfdocument.py", line 351, in compute_encryption_key password = (password + self.PASSWORD
阅读全文
摘要:bootstrap-table的表格翻页后,页面是不动的,当每一页的内容较多时浏览就比较麻烦,翻页后还要手动翻到顶部。也没有翻页后上滑到顶部的功能。搜了百度\github\stackoverflow都没有人讨论这个问题。 比较简单可行的办法: 改bootstrap-table源代码,打开bootst
阅读全文
摘要:使用pandas读取一个excel文件,出现‘Workbook is encrypted'错误,实际上文件没有加密码,而是设置了受保护的视图,pandas是使用xlrd模块读取excel文件,所以xlrd也是不行的 搜索发现一个模块可以对excel文件解密 pip install msoffcryp
阅读全文
摘要:载入excel文件: import pandas as pd reader=pd.read_excel(path,sheet_name=0, header=0,usecols=('A:H'),dtype=str) path:可以是文件路径,也可以是url sheet_name:选择excel中的工作
阅读全文
摘要:服务器运行beautifulsoup时出错,解决办法: 重新安装lxml pip uninstall lxml pip install lxml 还不行就换解析器:bs=BeautifulSoup(res.content,'html.parser')
阅读全文
摘要:在服务器用IDE运行正常,外部访问调用在requests模块出现错误:Can't connect to HTTPS URL because the SSL module is not available 这是python的dll搜索路径的问题 解决:github上的解决办法: CondaHTTPEr
阅读全文
摘要:1.打开cmd,定位到mongoDB\bin\。 2.执行mongodump,开始备份本地数据库中的所有数据库,前提是bin文件夹有mongodump.exe。备份完成的文件在bin\dump,会自动覆盖之前的备份。 3.将dump文件夹复制到另一台电脑的mongoDB\bin\,打开cmd,定位到
阅读全文