python - Indentation error -


I got an indentation error, which is why I can not understand the reason.
error

  ( 'unexpected indent', ( 'C: /Hamid/Failure_index.py',15,1,' \ tSDV2 = xyList [0] \ n ')). Importing abaqsConstants from   

my code

  * from ODB Access import * from view import * # ------------ - ------------------------------------------------- - ------------ out_file = 'C: \ Hamid \ Stochastic \ Python_script_for_Monte_Carlo_simulation \ Microtensile / Failure_index.dat' fid = open (out_file, 'w') to the range (1,50) : Odb_path = 'C: \ Hamid \ Stochastic \ Python_script_for_Monte_Carlo_simulation \ Microtensile / Microtens -' + str (i) + '_ xs.odb' session.openOdb (name = odb_path) odb = session.odbs [odb_path] session.viewports [ 'Viewport: 1']. Set values ​​(displayed object = Odibi) xyList = session.xyDataListFromField (odb = odb, outputPosition = INTEGRATION_POINT, variable = (( 'SDV2', INTEGRATION_POINT),), Ttwset = ( '' All the elements,)) SDV2 = XyList [0 ] Fid.write (SDV 2 + '\ n') odb.close () fid.close ()  

because of you to expand tabs to spaces in your source code in tabs and mixing spaces, and Python algorithms SDV2 = xyList [0] Due to reasons, it can be applied in 8 places, not 4 in for Like other lines form.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -