奇点星程
开始Python编程
国旗
作者:奇点星程
运行
清除
全屏运行
终端打印输出区
作品说明
点赞(0)
收藏 (0)
浏览量(418)
改编作品
我也要学编程
留 言
关于我们
奇点星程简介
用户协议
奇点星程官网
OJ平台
联系我们
微信:18065871965
邮箱:qidianxingcheng@163.com
建议反馈
软件下载
Scratch电脑版
Scratch安卓版
Python3.8
Dev-C++
管理平台
机构平台
校区平台
教师平台
©2017-2024. LLC. All RIGHTS RESERED.奇点星程
闽ICP备20003449号
闽公网安备35040302610058号
import turtle # 红色的旗面 turtle.up() turtle.goto(-110, -90) turtle.down() turtle.color("red") turtle.begin_fill() for i in range(1, 5): if i % 2 == 0: turtle.forward(205) else: turtle.forward(285) turtle.left(90) turtle.end_fill() # 黄色的五角星(大) turtle.up() turtle.goto(-85, 55) turtle.down() turtle.color("yellow") turtle.begin_fill() for i in range(5): turtle.forward(30) turtle.right(144) turtle.end_fill() # 第1个小五角星 turtle.up() turtle.goto(-35, 80) turtle.left(30) turtle.down() turtle.color("yellow") turtle.begin_fill() for i in range(5): turtle.forward(12) turtle.right(144) turtle.end_fill() # 第2个小五角星 turtle.up() turtle.goto(-14, 55) turtle.left(60) turtle.down() turtle.color("yellow") turtle.begin_fill() for i in range(5): turtle.forward(12) turtle.right(144) turtle.end_fill() # 第3个小五角星 turtle.up() turtle.goto(-12,28) turtle.left(30) turtle.down() turtle.color("yellow") turtle.begin_fill() for i in range(5): turtle.forward(12) turtle.right(144) turtle.end_fill() # 第4个小五角星 turtle.up() turtle.goto(-22, 10) turtle.left(60) turtle.down() turtle.color("yellow") turtle.begin_fill() for i in range(5): turtle.forward(12) turtle.right(144) turtle.end_fill() turtle.ht() turtle.up() turtle.goto(-110,-90) turtle.write("我爱我的祖国", font=("Arial",18, "bold")) turtle.ht()