The code is badly written, and there are several fatal places: 1, using global variables is a particularly bad habit; 2. It is also a bad habit to use Chinese Pinyin as variable names; 3. All business logic is written in one function ... Please rebuild it yourself. The code you wrote has one word: "noodle code" Brother Huang corrected the first one for you. ...