绘制一个红色的五角星,下列程序哪个是正确的?
A: from turtle import * fillcolor("red") begin_fill() while True: forward(300) right(144) if abs(pos()) < 1: break end_fill()
B: from turtle import * fillcolor("red") begin_fill() while True: forward(200) right(155) if abs(pos()) < 1: break end_fill()
C: ffrom turtle import * fillcolor("red") begin_fill() while True: forward(200) right(144) if pos() < 1: break end_fill()
D: from turtle import * fillcolor("red") begin_fill() while True: forward(200) right(144) if abs(pos()) < 2: break end_fill()
A: from turtle import * fillcolor("red") begin_fill() while True: forward(300) right(144) if abs(pos()) < 1: break end_fill()
B: from turtle import * fillcolor("red") begin_fill() while True: forward(200) right(155) if abs(pos()) < 1: break end_fill()
C: ffrom turtle import * fillcolor("red") begin_fill() while True: forward(200) right(144) if pos() < 1: break end_fill()
D: from turtle import * fillcolor("red") begin_fill() while True: forward(200) right(144) if abs(pos()) < 2: break end_fill()
举一反三
- 以下哪个选项是颜色填充的正确写法? A: start_fill()和done()_fill B: begin_fill()和finish()_fill C: start_fill()和end()_fill D: begin_fill()和end()_fill
- 为了将绘图区域填充上颜色,使用的函数有 A: begin_fill B: filling C: fillcolor D: end_fill
- Fill in the blanks with"-ly" adverbs from adjectives.probable____________ simple__________ true _______
- 哪个选项不能正确引用turtle库中的setup()函数? A: import turtle B: import turtle as t C: from turtle import* D: import setup from turtle
- 哪个选项不能正确引用turtle库进而使用setup()函数?( ) A: import turtle as t B: import setup from turtle C: from turtle import * D: import turtle