摘要
Python语言作为人工智能时代最合适的语言,有越来越多的人开始进行学习。为了提高学习兴趣、充分发挥学习者的创意,基于Turtle函数库设计并实现了一款图形界面的软件。在软件上用户可以使用鼠标进行图形的绘制,软件会根据绘制图形的类型、线条粗细、颜色等信息自动生成相应的Python代码。对照图形及生成的代码,可以帮助学习者方便快速地掌握Turtle常用函数的用法及Python程序的基本用法。
Python language is the most suitable language in the era of artificial intelligence,and more and more people begin to learn it.In order to improve the learning interest and give full play to the creativity of learners,this paper designs and implements a graphical interface software based on Turtle function library.With this software,users can use the mouse to draw graphics,and the software will automatically generate the corresponding Python code according to the type of graphics,line,color and other information.By comparing with the graphics and generated code,it can help learners quickly and easily master the usage of the commonly used functions of Turtle and the basic usage of Python program.
作者
宋雅娟
SONG Yajuan(School of Computer Engineering,Suzhou Vocational University,Suzhou 215104,China)
出处
《长春大学学报》
2021年第6期24-27,共4页
Journal of Changchun University
基金
江苏省教育科学“十三五”规划课题(D/2016/03/14)
苏州市职业大学校级项目(SZDJG-20004)
苏州市职业大学校级项目(SZDYKC-200608)。