Python的open函数报错’gbk’ codec can’t decode byte
报错信息 代码如下: with open("./test.html") as fin: h … Read more Python的open函数报错’gbk’ codec can’t decode byte
你有没有为写代码拼过命?那你知不知道 人生苦短,我用Python?
报错信息 代码如下: with open("./test.html") as fin: h … Read more Python的open函数报错’gbk’ codec can’t decode byte
问题 如果数据中包含string列,在版本2.0.0之后,直接用df.corr()和df.cov()会报错。 … Read more Pandas的corr和cov函数报错convert string to float
新版本的pandas的str.replace需要增加正则参数 import pandas as pd df = … Read more Pandas的str.replace的开启正则表达式
1. 引入settings的模块 在代码文件的上方进行引入: from django.conf import … Read more 在Django中访问BASE_DIR的推荐方法
新建虚拟环境 conda create -n mypyexcel python=3.9 conda activ … Read more Python处理Excel的Anaconda环境搭建
报错截图 修复方法 把如下的代码: from jinja2 import Markup 改成: from ma … Read more Flask app NameError: name ‘Markup’ is not defined