For patients with penile ulcers, the first thing to do is to identify the cause and treat it symptomatically. To achieve early detection and early treatment, in life, pay attention to personal hygiene, do not take drugs, enhance penile cleanliness and care, and avoid contact with irritating substances; in diet, avoid certain animal proteins and spicy and irritating foods.