Example 6 If real numbers $x, y$ satisfy $|x|+|y| \leqslant 1$, then the maximum value of $x^{2}-x y+y^{2}$ is $\qquad$ [4]
(2010, I Love Mathematics Junior High School Summer Camp Mathematics Competition)
Solve: Completing the square for $x^{2}-x y+y^{2}$ yields
$$
\begin{array}{l}
x^{2}-x y+y^{2}=\frac{1}{4}(x+y)^{2}+\frac{3}{4}(x-y)^{2} . \\
\text { Also, }|x \pm y| \leqslant|x|+|y| \leqslant 1, \text { then } \\
x^{2}-x y+y^{2} \leqslant \frac{1}{4}+\frac{3}{4}=1 .
\end{array}
$$

When $x$ and $y$ are such that one is 0 and the other is 1, the equality holds.
Therefore, the maximum value of $x^{2}-x y+y^{2}$ is 1.