各种编程上的错误
遇到的错误顺手留个备档,用到了再看。
南巷旧梦
现在在读研究生,以前写的博客太幼稚了,xdm不用关注,转载直接转就行。已经不写很久了了。谢谢大家。
展开
-
报错ValueError: check_hostname requires server_hostname
问题大概如上,当我们pip下载包的时候出现这个问题。很大可能是科学上网的原因,关闭代理即可。原创 2022-02-16 22:28:47 · 661 阅读 · 0 评论 -
‘utf-8‘ codec can‘t decode byte 0xc8 in position 0: invalid continuation byte
解决方法:data =pd.read_csv(r’xxx.csv’,encoding = ‘gb2312’)原创 2020-09-16 21:32:30 · 844 阅读 · 0 评论 -
a:10 GET http://localhost:8080/static/js/xxx.js net::ERR_ABORTED 404
在idea进行clean原创 2021-01-24 21:18:46 · 599 阅读 · 0 评论 -
关于Runtime.getRuntime().exec()运行python代码失败的问题
proc = Runtime.getRuntime().exec(" cmd /k start python " + "D:/" + "demo1.py");这样写就好了cmd /c dir 是执行完dir命令后关闭命令窗口。cmd /k dir 是执行完dir命令后不关闭命令窗口。cmd /c start dir 会打开一个新窗口后执行dir指令,原窗口会关闭。cmd /k start dir 会打开一个新窗口后执行dir指令,原窗口不会关闭。...转载 2021-01-11 18:56:32 · 1465 阅读 · 0 评论 -
offset must be non-negative and no greater than buffer length (0)(tensorflow.keras)
原因:数据集下载不完整所致解决方法 :1.找到 C盘->user->fashion_mnist2.把里面的东西删除从网上下一个原创 2020-05-05 20:55:22 · 1438 阅读 · 0 评论 -
如何解决AttributeError: ‘DataFrame‘ object has no attribute ‘sort‘
有需要的朋友可以看一下原创 2020-03-04 15:57:35 · 3128 阅读 · 0 评论