The code is not difficult to understand. The down event and the 3rd and 5th events (counting from 0) in the MyView consumption event sequence are implemented, and other events are not consumed. At the same time, for convenience of viewing, the value of X is printed out in the log. The log is as follows (the log for each event is separated by empty lines):
不过,以井儿的脾气,若是知道红椒投军,只怕连这个将军也不做了,也要随军出战。