给出如下代码:<pre>import turtle</pre><pre>def drawLine(draw):</pre><pre> turtle.pendown() if draw else turtle.penup()</pre><pre> turtle.fd(50)</pre><pre>turtle.right(90)</pre><pre>drawLine(True)</pre><pre>drawLine(0)</pre><pre>drawLine(True)</pre><pre>drawLine(True)</pre><pre>turtle.left(90)</pre><pre>drawLine(0)</pre><pre>drawLine(True)</pre><pre>drawLine(True)</pre>
以下选项中描述错误的是:(单选题)
.运行代码,在Python Turtle Graphics 中,绘制一个数码管数字2
.代码drawLine(True)中True替换为0,运行代码结果不变
.代码def drawLine(draw)中的draw可取数值0、1、–1等
.代码drawLine(True)中True替换为–1,运行代码结果不变
出自:2024年国家开放大学答案