![](https://img-blog.csdnimg.cn/214c407cd2d44364be65cccf0618223b.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
python error
文章平均质量分 70
解决一些 python 程序解释时出现的 error。
小邓在森林
人工智能小白
展开
-
TypeError: int() argument must be a string, a bytes-like object or a number, not ‘KeyboardModifier‘
TypeError: int() argument must be a string, a bytes-like object or a number, not ‘KeyboardModifier‘遇到bug的时候多上网找,尤其是在 GitHub 上基本上都有相应的解决方案,因为你不可能是第一个遇到这个问题的人,除非你用的是最新的语言。可能有时候 GitHub 需要梯子才能快速访问,那你可以先在百度或者CSDN上搜,也会有相应的解答,但是我觉得质量肯定还是没 GitHub 的好~原创 2024-01-17 10:22:42 · 1995 阅读 · 3 评论 -
Traceback (most recent call last): raise KeyError(key) from err KeyError:2 -重置索引(pandas、dataframe)
The above exception was the direct cause of the following exception:Traceback (most recent call last):return super().__getitem__(key)return self.obj._get_value(*key, takeable=self._takeable)row = self.index.get_loc(index)raise KeyError(key) from errpy重置索引原创 2023-11-25 17:43:59 · 1418 阅读 · 1 评论