2026python考试题库及答案画图.docVIP

  • 1
  • 0
  • 约2.66千字
  • 约 9页
  • 2026-08-03 发布于广东
  • 举报

2026python考试题库及答案画图

单项选择题(每题2分,共10题)

1.Python中绘制图形常用的库是()

A.math

B.turtle

C.random

D.time

2.turtle库中,设置画笔颜色的函数是()

A.penup()

B.pendown()

C.pencolor()

D.speed()

3.要让画笔移动但不留下痕迹,应使用()

A.forward()

B.backward()

C.penup()

D.pendown()

4.turtle库中,设置画笔速度最快的是()

A.speed(0)

B.speed(1)

C.speed(10)

D.speed(100)

5.绘制一个正方形,需要循环()次

A.2

B.3

C.4

D.5

6.若要让画笔右转90度,使用的函数是()

A.left(90)

B.right(90)

C.setheading(90)

D.home()

7.turtle库中,回到原点并恢复初始方向的函数是()

A.home()

B.goto(0,0)

C.setpos(0,0)

D.circle(0)

8.绘制圆形使用的函数是()

A.square()

B.rectangle()

C.circle()

D.triangle(

文档评论(0)

1亿VIP精品文档

相关文档