![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bug
MaXuwl
这个作者很懒,什么都没留下…
展开
-
ubuntu20无法使用ctrl+c复制和终止进程
转载请注明出处个人博客:https://maxusun.github.io/问题描述系统:ubuntu20.04问题:ctrl+c失效,但是ctrl+v还有效,只能使用ctrl+insert来复制。解决方法尝试方法 1如果安装了gnome-tweak-tool,打开,进入Keyboard & Mouse,将Show Extended Input Sources和Show All Input Source关闭。如果是中文,则选择对应的中文选项,有些可能只有两个中的一个。结果: 未解原创 2021-05-11 23:48:47 · 3498 阅读 · 0 评论 -
vscode写python时,代码提示时有时无
最近在用vscode写python时,老是遇到代码提示时有时无的问题,从网上找了一圈,该配置的都配置了,但是还是解决不了。后来仔细观察发现了问题的原因,但是没找到怎么解决。问题原因当我在workspace中打开多个python项目后,如果我只是打开其中一个项目的文件,就正常提示代码,如果同时打开多个项目的文件,就无法正确提示代码。然后把vscode重启后,又可以正确提示。个人觉得是打开多个项目文件,导致跨项目引用啥的出问题?还没找到怎么怎么解决。...原创 2021-04-11 20:37:29 · 610 阅读 · 0 评论 -
‘TypeError: Object of type ‘xxx‘ is not JSON serializable‘解决方法
转载请注明出处个人博客报错原因json在使用json.dumps()存储字典的时候,如果遇到json无法编码的类型时会报错。我们打开json的源码,找到 encoder.py --> _make_iterencode() -->_iterencode(),如下:我们可以发现json能够处理的类型有str,None,True,False,int,float,list,tuple,dict。其他的类型,会调用_default()函数进行处理。我们找到这个_default()函数,其实就是原创 2021-04-11 20:29:45 · 2601 阅读 · 0 评论 -
引用pytorch时,出现OSError: [WinError 126] 找不到指定的模块
转载请注明出处个人博客:https://maxusun.github.io/本人使用的电脑是锐龙4700u的CPU,其显卡是自带的AMD显卡,引用pytorch并使用时,出现下面的报错:E:\DeepDiag\backend>python manage.py runserver 127.0.0.1:8080Watching for file changes with StatReloaderPerforming system checks...2020-07-09 23:50:38.51原创 2020-07-31 15:09:12 · 2685 阅读 · 0 评论 -
npm audit fix 解决方法
这两天使用npm一直出现这个错误,当时没有在意,后来发现报的错误越来越多,如下:found 658 vulnerabilities (654 low, 3 moderate, 1 high) in 2770 scanned packages run `npm audit fix` to fix 1 of them. 4 vulnerabilities require semver-major dependency updates. 653 vulnerabilities require man原创 2020-07-16 15:53:17 · 11935 阅读 · 7 评论