![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
看不到尽头的debug
0阿齐兹0
这个作者很懒,什么都没留下…
展开
-
vs新建项目时出现“异常来自HRESULT: "问题解决方法
第一次使用vs2017或者vs其他版本新建项目时,如果出现“异常来自HRESULT: "的提示框,那么很可能就是因为安装时没有把应该安装的部分安装上去。具体解决方案:1.在工具栏选择“文件”->“新建项目”,然后点击“打开visual studio安装程序”2.在“使用C++的桌面开发”打勾,并安装,然后问题就解决了原创 2017-10-14 15:49:11 · 36307 阅读 · 12 评论 -
inconsistent use of tabs and spaces in indentation解决方法
问题描述在Python3中,运行module的时候,编辑器报错“inconsistent use of tabs and spaces in indentation”代码如下:"""这是"nester.py"模块,提供了一个名为print_lol()的函数,这个函数可以打印包含多个列表的列表"""def print_lol(the_list): """这个函数取一个位置参数名为"t原创 2018-02-01 11:08:01 · 42160 阅读 · 0 评论 -
Server response (410): Gone (This API has been deprecated and removed from legacy PyPI解决方法
问题描述:通过命令行窗口向PyPI注册时,出现报错: Server response (410): Gone (This API has been deprecated and removed from legacy PyPI in favor of using the APIs available in the new PyPI.org implementation of PyPI (locat原创 2018-02-01 17:56:12 · 1142 阅读 · 0 评论 -
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3解决方法
问题描述在Python3中,切换工作目录时,出现报错: SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape 代码如下:>>> os.chdir('C:\Users\0AQZ0\Documents\exercis原创 2018-02-02 16:06:51 · 29923 阅读 · 4 评论 -
NameError: name 'strip' is not defined解决方法
问题描述在Python Shell中试图调用help() BIF,查看strip()方法的具体用法时,出现NameError异常 代码如下:>>> help(strip)Traceback (most recent call last): File "", line 1, in help(strip)NameError: name 'strip' is not defi原创 2018-02-05 09:19:56 · 9393 阅读 · 0 评论 -
OSError: [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试 解决方法
问题描述在终端窗口中使用以下命令c:\"Program Files"\Python36\python.exe simple_httpd.py出现OSError:[WinError 10013]报错:OSError: [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试。如图: 问题原因尝试使用被占用的端口解决方法方法一:更改要使用的端口(把端口更改为8000)方原创 2018-02-11 21:18:50 · 17356 阅读 · 0 评论 -
SyntaxError: Non-ASCII character '\xca' in file XXX, but no encoding declared解决方法
问题描述在使用Python2.7导入模块时出现报错:SyntaxError: Non-ASCII character ‘\xca’ in file C:/Users/0AQZ0/Documents/exercisecode/Python/PyCV\rof.py on line 4, but no encoding declared; see http://python.org/dev/peps/pe原创 2018-03-03 12:13:56 · 2251 阅读 · 0 评论