[縮進錯誤]IndentationError: unexpected indent

 File "2.py", line 1
    def trailingZeros(n):
    ^
IndentationError: unexpected indent

原因:格式問題
我向VIM粘貼的代碼,全代碼都縮進了,就沒有發現,格式格式格式!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章