Both banana and pineapple are common foods and are not contraindicated by medications and can be consumed in moderation. Those who are allergic to banana and pineapple should not consume banana and pineapple. Bananas and pineapples are common foods in life and do not have the efficacy of drugs, and naturally, there are no contraindications of drugs. Moderate consumption can provide the body with carbohydrates and other nutrients. Bananas have a high food value, every 100 grams of bananas contain 89 calories, 22.84 grams of carbohydrates, 1.09 grams of protein, 0.33 grams of fat, vitamin C8.7 mg, calcium 5 mg, potassium 358 mg. Banana contains more sugar and potassium. Per 100 grams, pineapple contains 50 calories, 13.12 grams of carbohydrates, 0.54 grams of protein, 0.12 grams of fat, 47.8 milligrams of vitamin C, and 13 milligrams of calcium. The main calories in pineapple come from carbohydrates. Because both bananas and pineapples contain more sugar, diabetics need to limit and intake appropriately. The general population should also not consume too much. Pineapple contains more glycosides, plant acids and bromelain. It is recommended to soak it in lightly salted water before consumption to reduce the activity and content of these substances and to protect the oral mucosa as well as the mucosa of the gastrointestinal tract to avoid gastrointestinal reactions such as nausea and vomiting. Those who are allergic to banana and pineapple should avoid eating banana and pineapple.