Although you only eat cornmeal cakes and boiled cabbage every day, if you eat a lot of energy and produce a lot of energy, but you exercise too little and metabolize little energy, you will also gain weight.
A reasonable diet and balanced nutrition, and healthy exercise will prevent you from getting fat.