Obesity and thinness have many factors. As far as diet is concerned, foods that can cause obesity are mainly foods containing starch and fat. Vegetables mainly contain vitamins, minerals and dietary fiber, and do not synthesize fat in the body, so eating vegetables will not lead to obesity. However, from a health point of view, it is unreasonable to eat only vegetables without eating.
If you don't want to get fat, you need to strike a balance between the energy you consume and the energy you consume every day, so that you can keep your weight unchanged. If you eat too much, you can lose weight, and if you eat too much, you will gain weight. Diet is only one aspect, and exercise is also very important.