
问题记录
欢乐的小猪
当你认为你应该成为怎样的人,你就会紧张;当你做你自己,你就会放松
展开
-
Windows系统CMD下用cd命令,进不了D盘的问题
cd 后跟路径无法进入目录。原创 2025-03-04 15:16:00 · 167 阅读 · 0 评论 -
RuntimeError: Expected object of scalar type Float but got scalar type Double for argument #2 ‘mat1‘
解决方法:在DataSet初始化函数中,显示指明dtype为np.float32self.datas = np.array(datas ,dtype=np.float32)参考链接:https://stackoverflow.com/questions/60020184/runtimeerror-expected-object-of-scalar-type-float-but-got-scalar-type-double-fo...原创 2020-10-01 00:26:44 · 237 阅读 · 0 评论 -
UnicodeDecodeError:‘utf-8‘ codec can‘t decode byte 0xc3 in position 26: invalid continuation byte
问题描述:UnicodeDecodeError:'utf-8' codec can't decode byte 0xc3 in position 26: invalid continuation byte解决方法:打开文件,另存为为utf-8格式即可。原创 2020-09-11 19:51:55 · 1042 阅读 · 0 评论 -
FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecated; in a future version
完整错误信息:C:\Users\Lihjia\Anaconda3\envs\tf114gpu\lib\site-packages\tensorboard\compat\tensorflow_stub\dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (typ原创 2020-07-01 19:42:31 · 466 阅读 · 0 评论 -
The repository 'http://ppa.launchpad.net/octave/stable/ubuntu bionic Release' does not have a Releas
问题描述:在ubuntu虚拟机下尝试安装octave,添加源之后报错sudo apt-add-repository ppa:octave/stable错误信息提示如下:The repository 'http://ppa.launchpad.net/octave/stable/ubuntu bionic Release' does not have a Release file....原创 2019-10-30 15:24:59 · 3596 阅读 · 0 评论 -
pycharm pandas 输出结果中有省略号
问题描述:使用pandas进行数据处理时,经常需要打印几条信息来直观了解数据信息import pandas as pddata=pd.read_csv(r"user.csv",low_memory=False)print(data.head(5))但是pandas默认一行的width为80且展示一条记录信息。如下所示。解决方案:设置pandas的显示参数(最大列数,...原创 2019-09-19 01:00:53 · 2274 阅读 · 0 评论