判断题 偏易
#4319

运行下面代码,可以在海龟画图窗口上画一个黑色边框,红色填充的圆。( ) import turtle turtle . penup ( ) turtle . be…

运行下面代码,可以在海龟画图窗口上画一个黑色边框,红色填充的圆。( )

import turtle
turtle.penup()
turtle.begin_fill()
turtle.color('black', 'red')
turtle.circle(100)
turtle.end_fill()
turtle.pendown()
turtle.forward(100)


未登录也能判分,登录后才会记录
答案与解析
正确答案:错
解析

开始画圆前写了penup()功能,让画笔抬起了,画完圆后在才使用pendown()功能让画笔落下,所以画出的是一条线段,并不是圆。