单选题

以下哪个程序,能画出一次边长为 5 的正方形图案?(     )

A

import turtle as t

while n < 4:

    t.forward(5)

    t.right(90)

    n = n + 1

B

import turtle as t

n = 1

while n < 4:

    t.forward(5)

    t.right(90)

n = n + 1

C

import turtle as t

n = 0

while n < 4:

    t.forward(5)

    t.right(90)

    n = n + 1

D

import turtle as t

n = 1

while n < 4:

    t.forward(5)

    t.right(90)

    n = n + 1

赣ICP备20007335号-2