E-learning is a social network learning method that greatly promotes the dissemination of knowledge. Students can use mobile network terminals for video learning and also share their learning materials, making the learning process interactive and entertaining. This article is based on virtual reality technology and studies the effectiveness of the interactive E-learning mode for political courses in the digital entertainment environment. This online teaching method benefits students and teachers a lot with its unique advantages, and is unanimously favored by experts and scholars. These courses not only provide students with a comprehensive understanding of Marxism, but also help them develop a correct world outlook, values, and ethics. Meanwhile, in the current digital technology environment, interactive online learning has the characteristics of virtualization and entertainment. Students can comment on social hot topics and share their favorite content through various media platforms. The results indicate that the application of artificial intelligence and virtual reality technology in the interactive e-learning mode of political networks has important advantages.