1. 程式人生 > >Python文件運行時報TabError: inconsistent use of tabs and spaces in indentation

Python文件運行時報TabError: inconsistent use of tabs and spaces in indentation

運行時 erro space 導致 error: con 地方 錯誤 ace

1. 問題描述

Python文件運行時報TabError: inconsistent use of tabs and spaces in indentation

2. 問題原因

tab 和 space混合使用導致程序錯誤

3. 解決方案

排查出錯地方的格式

Python文件運行時報TabError: inconsistent use of tabs and spaces in indentation