Pyloric cancer and pyloritis are different in terms of pathogenesis and treatment methods. 1. Different pathogenesis: pyloric cancer refers to malignant tumors occurring in the pylorus of the stomach; pyloritis refers to inflammatory changes of gastric pyloric mucosa, which is a kind of chronic gastritis. 2. Different treatment methods: (1) Pylori cancer: after clear diagnosis, patients with pylori cancer need to undergo radical resection under gastroscope as early as possible, and supplemented with standardized treatments such as radiotherapy and chemotherapy after operation. (2) Pyloritis: If pylori infection is combined with Helicobacter pylori, patients with pyloritis can use omeprazole, colloidal bismuth pectin, clarithromycin, amoxicillin, etc. to eradicate Helicobacter pylori infection; if there is indigestion, gastric stimulating drugs such as domperidone can be used to promote gastric dynamics; if pyloritis is caused by taking aspirin and other medicines, the medicines that damage the gastric mucous membrane can be replaced by following medical advice. The condition of pyloritis is relatively mild, but there is a risk of progression to pyloric cancer. In case of pyloric cancer or pyloritis, it is recommended to seek prompt medical attention and treatment under the guidance of a doctor.