• 2022-06-16
    绘制一个红色的五角星,下列程序哪个是正确的?
    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

    内容

    • 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>判断题