- 博客(7)
- 收藏
- 关注
原创 PyCharm(Python3)报错 PEP 8: expected 2 blank lines, found 1
问题描述相信不少初学者在使用PyCharm写函数的时候,可能会遇到这样的问题:第11行代码处,on_draw()函数报错,错误显示为:PEP 8: expected 2 blank lines, found 1意思为:需要两个空行,找到了一个。解决方案在写函数之前,先空两行。修改之后,一切正常。...
2020-01-14 16:03:51 1745
原创 PyCharm中import显示灰色解决方案
问题描述不少新手在使用Pycharm时都遇到了这样的问题,import导入包的时候,比如import urllib,import os,写的时候还是彩色,一写完,一按回车,马上就变成了灰色。解决方案1、配置python解释器有误也就是说python找不到你的包,这种原因的解决方案可以参照我的另一篇文章。https://blog.csdn.net/Nire_Yeyu/article/de...
2020-01-14 09:53:14 25786 1
原创 Python3报错:This inspection detects names that should resolve but don't. Due to dynamic dispatch ...
问题描述刚开始使用Pycharm写Python代码,遇到的问题真的是差一点把自己蠢哭。在文件中导入两个最基础的库:import osimport urllib结果:“try”文件如图:全是灰色波浪线,鼠标放上去以后显示:This inspection detects names that should resolve but don’t. Due to dynamic disp...
2020-01-13 16:17:19 15896
原创 char[ ]类型转换为CString类型
我们在用C++写MFC程序时,可能会出现以下问题:void SaveRawData(unsigned short* m_pRawBuffer,unsigned long ImageSize ,CString Bla );//函数原型SaveRawData((WORD *)pDataGet,Datalength,"Raw.txt");//调用函数此时,编译器会报错:error C2664...
2020-01-09 15:19:54 4182
原创 error C2665: 'AfxMessageBox' : none of the 2 overloads could convert all the argument types
问题描述本人用Microsoft Visual Studio编写MFC代码在使用函数AfxMessageBox( )是发生错误:AfxMessageBox("GetDIBits");编译器显示的错误为:error C2665: ‘AfxMessageBox’ : none of the 2 overloads could convert all the argument types重...
2020-01-09 14:59:21 1599 1
原创 Vfw32.lib下载 error LNK2001: unresolved external symbol _AVIStreamWrite@32
问题描述:本人使用 Microsoft Visual Studio 编写 MFC 代码在编写压缩、存储等与视频相关的代码时(以下代码为例):int Compress(void *aBuffer){ //CyAssert( mCompressing ); //CyAssert( mTempBuffer != NULL ); long lSamplesWritten, lBytesWr...
2020-01-09 14:36:50 873 1
原创 error C2664: 'sscanf' : cannot convert parameter 1 from 'CString' to 'const char *'
问题描述本人使用Microsoft Visual Studio编写C++MFC代码。在调用 sscanf() 函数的过程中:CString str;char m_port[255]="";str.Format(_T("fpatemp:%.1f,devtmp:%.1f,fpaAvg:%d,ave:%d--max:%.1f℃(%d),min:%.1f℃(%d),center:%.1f℃"),...
2020-01-09 13:23:44 1239
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人