Frequent farting and unshaped stools may be caused by inflammation of the digestive system or intestinal flora imbalance, etc. The treatment drugs include antibiotics such as norfloxacin and probiotics such as Bacillus licheniformis live bacterial granules, etc. The medication regimen is different for different cases. 1. Antibiotics: If the bloating, farting and unformed stools are caused by bacterial infections in the digestive system, gastrointestinal-sensitive antibiotics, such as quinolones, including levofloxacin tablets, norfloxacin tablets, and so on, can be used to treat the anti-infections. After the inflammation is controlled, the symptoms can be improved. 2. Probiotics: When the ratio of intestinal flora is imbalanced due to various reasons, it can also cause bloating, farting and unformed stools. You can take Bifidobacteria capsules, Clostridium typhimurium tablets, Bacillus licheniformis granules and other intestinal probiotics to help digestion and maintain the balance of intestinal flora. However, it should be noted that antibiotics and probiotics need to be taken at least 2 hours apart to avoid affecting the efficacy of the drug, it is recommended to use the drug under the guidance of a doctor, not blindly self-medication.