\(f\left(-x\right)=\left|-sinx-cosx\right|-\left|-sinx+cosx\right|\)
\(=\left|sinx+cosx\right|-\left|sinx-cosx\right|=-f\left(x\right)\)
\(\Rightarrow f\left(x\right)+f\left(-x\right)=0\)
\(\Rightarrow T=f\left(-\pi\right)+f\left(\pi\right)+f\left(-\frac{\pi}{2}\right)+f\left(\frac{\pi}{2}\right)+...+f\left(-\frac{\pi}{n}\right)+f\left(\frac{\pi}{n}\right)+f\left(0\right)\)
\(=0+0+...+0+f\left(0\right)=f\left(0\right)\)
\(=1-1=0\)