1. (单选题)海龟初始坐标为(0,0),让海龟往坐标原点后方移动200像素的语句是
- A. turtle.penup(200)
- B. turtle.fd(200)
- C. turtle.goto(200)
- D. turtle.bk(200)
2. (单选题)改变海龟画笔尺寸的是
- A. turtle.penwidth()
- B. turtle.pensize()
- C. turtle.size()
- D. turtle.drawsize()
3. (单选题)能隐藏绘图中海龟标志的函数是
- A. turtle.hide()
- B. turtle.done()
- C. turtle.exitonclick()
- D. turtle.hideturtle()
4. (单选题)执行以下语句,会输出几个数据:
for i in range(11,2020,4):
print(i)
- A. 502
- B. 503
- C. 504
- D. 505
5. (单选题)设置海龟绘制的图形填充颜色为蓝色,边框颜色为红色的代码是
- A. turtle.color('red','blue')
- B. turtle.color('blue','red')
- C. turtle.pencolor('red')
- D. turtle.fillcolor('blue')
6. (单选题)导入海龟库错误的语句是
- A. import turtle
- B. import turtle as tt
- C. from turtel import penup()
- D. from turtel import *
7. (单选题)以下哪个选项不是Python保留字
- A. global
- B. lambda
- C. sum
- D. del
8. (单选题)定义函数的保留字为
- A. del
- B. def
- C. function
- D. class
9. (单选题)绘制一个坐标原点为圆心,半径为100的圆,代码为
10. (单选题)以下代码不能绘制正方形的是
- A.
import turtle as t
t.goto(200,0)
t.goto(200,200)
t.goto(0,200)
t.goto(0,0)
t.done()
- B.
import turtle as t
for i in range(4):
t.fd(200)
t.left(90)
t.done()
- C. import turtle as t
for i in range(4):
t.fd(200)
t.right(90)
t.done()
- D. import turtle as t
for i in range(4):
t.fd(200)
t.seth(90)
t.done()