
代码报错
~Dark
这个作者很懒,什么都没留下…
展开
-
sqlalchemy映射到MySQL报错:Cannot add or update a child row: a foreign key constraint fails
sqlalchemy.exc.IntegrityError: (pymysql.err.IntegrityError) (1452, 'Cannot add or update a child row: a foreign key constraint fails原创 2022-06-24 08:39:28 · 951 阅读 · 1 评论 -
vue框架中ws错误:Invalid frame header
报错信息:WebSocket connection to 'ws://172.21.218.197:8080/ws' failed: failed: Invalid frame header原创 2022-06-24 08:36:20 · 9027 阅读 · 2 评论 -
vue配置文件中的漏洞:error Component name “Login“ should always be multi-word vue/multi-word-component-name
vue配置文件中的漏洞:error Component name "Login" should always be multi-word vue/multi-word-component-names原创 2022-06-24 08:32:12 · 6379 阅读 · 0 评论 -
npm下载安装nrm错误:(报错指令:npm install nrm -g)
npm下载安装nrm错误:(报错指令:npm install nrm -g)原创 2022-06-24 08:25:19 · 1334 阅读 · 0 评论 -
报错:... takes 1 positional argument but 2 were given
问题在编程过程中出现以下报错:webshow() takes 1 positional argument but 2 were given存在的报错问题是参数不足或冗余导致的解决方法错误代码如下: def webshow(self): webbrowser.open("http://www.baidu.com")由于缺少一个参数,致使报错:TypeError: webshow() takes 1 positional argument but 2 w原创 2021-09-09 11:03:12 · 34327 阅读 · 0 评论 -
Python报错:_tkinter.TclError: couldn‘t recognize data in image file...
在Python中使用tkinter导入图片时出现报错:_tkinter.TclError: couldn't recognize data in image file...global photophoto = PhotoImage(file="image/1.gif")self.lable3 = Label(self, image=photo)self.lable3.pack() 在方法中运行上述代码时,出现报错:出现此类报错的原因在于“1.gif”文件,我首先...原创 2021-09-08 08:15:48 · 10263 阅读 · 2 评论