题型:单选题
分析下列程序,说法错误的是?( )
import turtle
turtle.color('blue')
turtle.fillcolor('yellow')
turtle.begin_fill()
turtle.circle(50)
turtle.end_fill()
turtle.forward(100)
turtle.color('red', 'aqua')
turtle.begin_fill()
turtle.circle(50)
turtle.end_fill()| A. turtle.color('blue')表示的含义为:设置轮廓和填充颜色均为"blue" |
B. turtle.fllcolor('yellow')表示的含义为:设置填充颜色为"yellow" |
| C. 程序运行结果为:绘制两个圆,左边圆填充颜色为"yellow",右边圆的颜色为"aqua" |
D. 最终绘制两个圆的轮廓颜色均为"blue" |
更新时间:2022-10-31 17:46:03
|
【知识点】
电子学会Python一级
抱歉! 您未登录, 不能查看答案和解析点击登录
相似题推荐
单选题
中国电子学会组织学生参加国庆节庆祝活动,某同学想用红色的画笔绘制五星红旗中的一颗五角星,下列哪个指令可以将画笔设置为红色?( )
| A. turtle.pensize('red') |
B. turtle.speed('red') |
| C. turtle.pencolor('red') |
D. turtle.fillcolor('red') |
2026-07-10
单选题
在Python中,执行下列代码后,可以绘制出什么图形?( )
import turtle turtle.dot(100)
| A. 直径为100的实心圆 |
B. 半径为100的实心圆 |
| C. 什么都画不出 |
D. 直径为100的空心圆 |
2026-07-10
单选题
在 IDLE 中编写完 Python 代码后,保存文件时使用以下哪个后缀名,才能让文件被 IDLE 正常识别为可直接运行的 Python 脚本?( )
| A. .doc |
B. .txt |
| C. .py |
D. .python |
2026-07-10
