[Tutor] IndentationError
Peter Otten
__peter__ at web.de
Tue Aug 12 09:26:09 CEST 2014
王学敏 wrote:
> Dear Python Users,
>
> Attachment is python code.
>
> The function of this code is that I want to insert lots of fiber into
> matrix, data is a list storing translate vector. When a fiber is
> translated to matrix, I used fiber to cut matrix. So the new part will be
> generated, I delete the previous part and resume fiber. The loop will stop
> when all fibers are inserted to matrix. I used abaqus 6.11 to run
> fibermatrix.py, but it has problems. Thank you for your help.
You are mixing tabs and spaces. Configure your editor to display a tab as
eight spaces and you will see the problem.
If your editer offers an option to translate a hit on the tab key into four
spaces I recommend that you toggle that option to avoid the problem in the
future.
More information about the Tutor
mailing list