A control panel for a washing machine, and the washing machine. The washing machine comprises a circuit board (300) disposed on the inner side of the control panel (100) and a knob disposed on the circuit board (300). The knob comprises a knob cap (200) protruding from the control panel (100) and capable of rotating. The control panel (100) includes a limit structure used for restrict the shake of the knob cap (200) when the knob cap (200) rotates. The limit structure is integrally formed or fixedly connected with the control panel (100). By limiting the shake of the knob by means of the limit structure, the drifts of the knob are reduced, thereby improving the hand feel of the user. Because the limit structure is directly disposed on the control panel or is integrally formed with the control panel, the cumulative tolerance of a size chain is reduced, so that the limit structure has a better limit effect, thereby reducing shakes and deviations in the rotation of the knob.