当我尝试将其中一个脚本导入到Maya的内存中时,出现python代码错误。#错误:IndentationError:unindent不匹配任何外部缩进级别#在代码的第一行
下面的代码:
import solar_system as ss
import pymel.core as pm
import random
而且我recieving这个错误:
# Error: unindent does not match any outer indentation level
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# File "C:/Users/Owner/Documents/maya/2012-x64/prefs/scripts\solar_system.py", line 66
# '''
#
#^
# IndentationError: unindent does not match any outer indentation level #
所以,出于某种原因,它希望进口solar_system为SS缩进什?我真的不明白我想要做什么。任何帮助?请?
那么,'solar_system.py'的第66行是什么?这就是实际的错误所在。它在错误信息中说得很对。 – kindall 2012-04-06 20:30:53
呵呵。我想这只是我在文件底部的一些评论。我删除了它们,现在工作正常。谢谢,我对此很陌生,不明白错误的含义。所以各种翻译很有帮助。 – 2012-04-06 20:42:43