绘制一个红色的五角星,下列程序哪个是正确的?
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()
D
举一反三
- 以下哪个选项是颜色填充的正确写法? 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
内容
- 0
为了可以使用turtle库中的setup()函数,下列哪个选项不正确? A: import setup from turtle B: from turtle import * C: import turtle D: import turtle as t
- 1
使用turtle库的circle()函数,哪个选项的引用方式是错误的( ) A: from turtle import * B: from turtle import circle C: import turtle as t D: import turtle from circle
- 2
导入模块的方式错误的是( ) A: import turtle B: import m from turtle C: from turtle import * D: import turtle as m
- 3
下列语句会陷入死循环的是_____. A: while True: break B: while 1<10: print("hello") C: while True: if 1<10: break D: while 1<10: break
- 4
哪个选项不能正确引用turtle库进而使用setup( )函数 A: from turtle import * B: import turtle C: import turtle as t D: import setup from turtle<br> <br>判断题