面向Python翻转课堂的图形动画案例库的设计
2021-12-28宋雅娟尚鲜连
宋雅娟 尚鲜连




摘 要: 为了提高学生在翻转课堂模式下对Python语言进行自主学习的兴趣,开发一个基于Python Turtle库的图形动画案例库集成软件。在软件中可以直观地看到图形案例、动画程序、小游戏程序的运行效果及其实现代码。案例内容从简单到复杂,从静态到动态,有助于学生通过案例自主学习,在教学中取得了良好的应用效果。该软件可以应用于高职、高专Python翻转课堂教学中,也可以应用于Python爱好者的自学。
关键词: Python教学; 图形动画案例库; Turtle库; 翻转课堂
中图分类号:G433 文献标识码:A 文章编号:1006-8228(2021)12-106-03
Abstract: In order to improve students' interest in autonomous learning of Python language in flipped classroom mode, integrated software of graphic animation case library based on Python Turtle library is developed. In the software, the running effect and the implementation code of graphic cases, animation programs and small game programs can be intuitively seen. The content of case is from simple to complex, from static to dynamic, which is helpful to students' autonomous learning through case, and has achieved good application effect in teaching. The software can be applied to the flipped classroom teaching of Python in higher vocational college and higher technical college, and can also be applied to the self-learning of Python enthusiasts.
Key words: Python teaching; graphic animation cases library; Turtle library; flipped classroom
0 引言
Python是一种面向对象的解释型计算机程序设计语言,Python语言易学易用,具备丰富的开源库[1],已成为继Java,C++之后的第三大程序设计语言。为了激发学生学习兴趣,图形动画案例不断被引入各种程序语言的教学中。文献[2-4]中是将EasyX制作的图形案例应用于“C语言程序设计”的教学过程中,文献[5]是将图形动画案例应用于“Java语言程序设计”的教学中。随着翻转课堂线上线下教学模式的发展,各种辅助教学资源不断被应用在计算机专业的教学过程中[6]。
Python可以用来开发人工智能程序、动画游戏程序、图像处理程序。本文设计并实现Turtle库图形动画小游戏案例库,并利用tkinter库的菜单功能对所有案例加以整合,形成一个相对完整的案例库软件平台,涵盖一系列由简单到复杂的图形动画案例。 Python各种知识点贯穿其中,既可作为线上教学资源,也可以作为课堂教学案例使用。在提高程序语言的教学质量的同时,为自主学习Python探索一种新的方法。……
