记一次Python调试问题

C#调用python脚本错误:

使用cmd直接运行脚本报错:

TabError: inconsistent use of tabs and spaces in indentation

 

  

 查看日志报错:

Python脚本运行出现语法错误:IndentationError: unindent does not match any outer indentation level

 

 

 

请假别人和查询资料发现python对缩进有严格要求,下图这样是不行的

 

下面是对的

 

 


https://blog.csdn.net/u010444671/article/details/52573470

https://www.crifan.com/python_syntax_error_indentationerror/comment-page-1/

posted @ 2020-07-02 22:05  冬音  阅读(150)  评论(0编辑  收藏  举报