How to solve this for loop In circulation bug?
I hope it can be solved without touching the code , I really don't know how to change
Here is the source code :
def rotate_model(fname_in, fname_out):
import os
if os.path.exists(fname_in)==True:
fp=open(fname_in)
line=fp.read()
fp_f=line.find('f')
line1=line[:fp_f]
line1_list=line1.split(' ')
x=1
for x in line1_list: line1_list[x]= line1_list[x+1] line1_list[x+1]=('-'+line1_list[x]) x+=3return line1_listfname_out.close()
else:
return -1