【Example 5】How many vertices does the cube $\{(x, y, z): 0 \leqslant x \leqslant a, 0 \leqslant y \leqslant a, 0 \leqslant z \leqslant a\}$ have? Write down their coordinates respectively.

The answer to this problem is obvious, but our current goal is to verify this answer from the perspective of repeated permutations. This viewpoint and method of discussion will be very useful for discussing the properties of solids in $n$-dimensional space in the future.
Since each vertex $(x, y, z)$ has three coordinates that are elements of the set $A=$ $\{0, a\}$, this is a problem of repeated permutations, with a total of $2^{3}=8$ different vertices. These vertices are: $(0,0,0),(0,0, a),(0, a, 0)$, $(a, 0,0),(0, a, a),(a, 0, a),(a, a, 0),(a, a, a)$.