打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
海龟绘图:python绘制百变表情包

导语:思考在趣味中进行,创造在代码中发生。

          课堂的生命力在师生教与学的共同创造中产生。

信息技术课堂里,孩子们不喜欢老师喋喋不休的讲解。我们的信息技术吉老师在讲完基本知识后,布置了这样一个项目主题作业:百变表情包。在限定的30分钟内,孩子们尽情发挥才智,创造出惊喜而趣味的各种表情画面。

一起来瞧瞧孩子们用代码敲下来的创意作品。

2020级13班 冒袁沁同学的作品

import turtle as t

t.speed(5)

t.setup(800,600)

t.penup()

t.goto(-200,-100)

t.down()

t.begin_fill()

t.fillcolor('white')

t.circle(150)

t.end_fill()

t.penup()

t.goto(-150,70)

t.pendown()

t.right(30)

t.forward(50)

t.penup()

t.goto(-100,70)

t.pendown()

t.left(240)

t.forward(50)

t.penup()

t.goto(-250,70)

t.pendown()

t.forward(50)

t.penup()

t.goto(-300,70)

t.pendown()

t.right(240)

t.forward(50)

t.penup()

t.goto(-100,100)

t.right(240)

t.pendown()

t.begin_fill()

t.fillcolor('red')

t.circle(120,180)

t.end_fill()

t.penup()

t.goto(-200,0)

t.pendown()

t.begin_fill()

t.fillcolor('red')

t.circle(40)

t.end_fill()

t.penup()

t.goto(200,-200)

t.pendown()

t.write('小\n丑\n竟\n是\n我\n自\n己',font=('楷体',50))

t.penup()

t.goto(-250,-50)

t.pendown()

t.right(230)

t.forward(50)

t.penup()

t.right(70)

t.pendown()

t.forward(50)

t.hideturtle()

2020级13班徐谦同学的作品

import turtle as t

t.speed(6)

t.pensize(10)

t.setup(800,600)

def a(x,y):

    t.up()

    t.goto(x,y)

    t.down()

a(0,-300)

t.color('black','yellow')

t.begin_fill()

t.circle(300,360,5)

t.end_fill()

#1:)

a(-125,100)

t.color('red')

for z in range(5):

    t.fd(30)

    t.lt(144)

#2:)

a(125,100)

t.color('red')

for z in range(5):

    t.fd(30)

    t.lt(144)

t.color('pink','purple')

t.begin_fill()

a(0,20)

t.rt(120)

t.fd(60)

t.lt(60)

t.fd(60)

t.rt(60)

t.backward(60)

t.rt(120)

t.fd(60)

t.end_fill()

t.color('blue','red')

t.seth(-90)

a(-120,-120)

t.begin_fill()

t.circle(120,180,4)

t.lt(90)

t.fd(240)

t.end_fill()

t.color('green','green')

a(-200,280)

t.begin_fill()

t.backward(400)

t.lt(108)

t.fd(50)

t.lt(72)

t.backward(435)

t.lt(72)

t.fd(50)

t.end_fill()

2020级13班严仲晨同学的作品

import turtle as t

t.speed(10)

t.hideturtle()

t.up()

t.goto(0,-300)

t.down()

t.begin_fill()

t.circle(300)

t.color('black','yellow')

t.end_fill()

t.up()

t.goto(0,-280)

t.down()

t.begin_fill()

t.circle(200)

t.color('yellow','red')

t.end_fill()

t.up()

t.goto(0,-240)

t.down()

t.begin_fill()

t.circle(200)

t.color('black','yellow')

t.end_fill()

t.up()

t.goto(30,-70)

t.down()

t.begin_fill()

for i in range(3):

    t.left(120)

    t.forward(70)

    t.color('black','cyan')

t.end_fill()

t.up()

t.goto(-100,40)

t.down()

t.begin_fill()

t.circle(70)

t.color('black','white')

t.end_fill()

t.up()

t.goto(100,40)

t.down()

t.begin_fill()

t.circle(70)

t.color('black','white')

t.end_fill()

t.up()

t.goto(-60,80)

t.down()

t.begin_fill()

t.circle(30)

t.color('black','black')

t.end_fill()

t.up()

t.goto(140,80)

t.down()

t.begin_fill()

t.circle(30)

t.color('black','black')

t.end_fill()

2020级16班高晨杰同学的作品

import turtle as t

t.speed(6)

t.setup(800,600)

t.bgcolor('grey')

t.color('black','white')

t.penup()#脸部

t.goto(0,-200)

t.pendown()

t.begin_fill()

t.circle(200)

t.end_fill()

t.penup()

t.goto(0,-50)

t.pendown()

t.fillcolor('yellow')

t.begin_fill()

t.circle(50,steps=3)

t.end_fill()

t.up()#右眼

t.goto(100,50)

t.down()

t.circle(55)

t.goto(100,50)

t.down()

t.begin_fill()

t.circle(40)

t.end_fill()

t.up()#左眼

t.goto(-100,50)

t.down()

t.circle(55)

t.goto(-100,50)

t.down()

t.begin_fill()

t.circle(40)

t.end_fill()

t.up()#嘴巴

t.goto(0,-150)

t.down()

t.fillcolor('grey')

t.begin_fill()

t.circle(80,100)

t.end_fill()

2020级18班曹忆寒同学的作品

import turtle as t

t.setup(800,600)

t.bgcolor("grey")

t.speed(10)

t.up()

t.goto(0,-200)

t.down()

t.pencolor("blue")

t.pensize(10)

t.circle(200)

t.up()

t.goto(-30,65)

t.down()

t.backward(70)

t.right(90)

t.forward(150)

t.left(90)

t.up()

t.goto(30,65)

t.down()

t.forward(70)

t.right(90)

t.forward(150)

t.left(90)

t.up()

t.goto(0,-20)

t.down()

t.pencolor("red")

t.dot(30)

t.up()

t.goto(-100,-150)

t.down()

t.left(90)

t.circle(-100,180)

t.up()

t.goto(-100,-250)

t.down()

t.write("5555555~",font=("宋体",40))

2020级18班夏羿同学的作品

import turtle as t

t.pensize(2)

t.speed(10)

t.screensize(800,600)

t.pencolor("cyan")

t.up()

t.goto(0,-200)

t.down()

t.circle(175)

t.up()

t.goto(-110,-50)

t.right(90)

t.down()

t.circle(110,180)

t.up()

t.goto(-60,5)

t.down()

t.begin_fill()

for i in range(5):

    t.forward(75)

    t.left(144)

t.end_fill()

t.up()

t.goto(60,5)

t.down()

t.begin_fill()

for i in range(5):

    t.forward(75)

    t.right(144)

t.end_fill()

t.up()

t.goto(0,0)

t.down()

t.right(180)

t.forward(30)

t.up()

t.goto(0,-300)

t.down()

下面同学的代码省略,相信你通过以上学习,触类旁通,也能进行创作了。

2020级18班张博涵同学的作品

2020级19班华庆奥同学的作品

2020级20班陈苏豫同学的作品

2020级20班丁建乔同学的作品

    看完以上作品,是不是要为这些孩子们点个赞。想象中枯燥的代码学习在老师的引导下一样有很多乐趣,一样可以创造快乐课堂,激发学习的兴趣,留下孩子们宝贵的智慧足迹,开发创造潜能。

致谢:感谢学生作品素材提供者吉红兰老师,感谢在她的引导下孩子们享受到这样的快乐课堂。

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
python绘制神器五角星 小黄人 樱花
惊艳!用 Python 送女神们别样的礼物!
刚刚出炉的冬奥会吉祥物:冰墩墩,附源码...
python 标准库
Python — — turtle 常用代码
算法创作|“画雪人”问题解决方法
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服