The nine-year compulsory education stipulated by the state is public, compulsory and universal, and children have the right to receive nine-year compulsory education in any city. However, children who are not registered in this city must have a residence permit score of 120 to take the senior high school entrance examination in Shanghai, which is a necessary condition.