Carrying out ideological and political education from the background of curriculum content to improve mathematics aesthetics. Combine mathematical culture with "ideological and political course" organically. When talking about the introduction of each chapter, first introduce the knowledge background and some mathematical culture stories. For example, the true value of pi calculated by Zu Chongzhi, a mathematician in China's ancient Southern and Northern Dynasties, was more than 1000 years earlier than that in Europe. He is not only famous in mathematics, but also a great astronomer. Through these introductions, students not only deeply understand the concept of irrational numbers, but also appreciate the wisdom of our ancestors, enhance national pride, stimulate students' thirst for knowledge, and encourage students to study hard, be positive and be brave in innovation. Mathematics is a "knowledge that makes people smart", which suggests a way of thinking, a way of thinking, a reasonable standard of thinking, and opens the road to human ideological emancipation. Its thinking method can directly help to think about other non-mathematical problems and achieve the purpose of optimizing thinking. In the teaching process, students can appreciate the beauty of using strong mathematical thinking, which will greatly stimulate their interest in learning.