解:水的化学式为$\text{H}_2\text{O},$根据元素守恒,反应前后元素质量不变。
水中氢元素的质量等于生成氢气的质量,氢元素质量为:
$72\,\text{g} \times \frac{2 \times 1}{2 \times 1 + 16} = 72\,\text{g} \times \frac{2}{18} = 8\,\text{g}$
水中氧元素的质量等于生成氧气的质量,氧元素质量为:
$72\,\text{g} \times \frac{16}{2 \times 1 + 16} = 72\,\text{g} \times \frac{16}{18} = 64\,\text{g}$
答:电解72g水能产生8g氢气和64g氧气。