python - Python_Encoding_error message -
hi able code working following below, changing bunch of variable names seemed work. perhaps using variables recognized encoder _utf-8. help
dt =0.1 a=100 n=int(a/dt) kgrow=1; kshrink =0.25 pgrow=kgrow*dt ; pshrink=kshrink*dt length =[] l=0 times =[] t=0 in range(n): t+=dt times.append(t) randgrow=random.random() randshrink=random.random() length.append(l) time=np.array(times) lengths=np.array(length) plt. plot (times,length) plt. xlabel('time') plt.ylabel('length')
try open notepad , save ansi encoding.
Comments
Post a Comment