题库首页 › 青少年软件编程(Python) › 题目 13054

下列图形可能是哪段代码执行后的结果?( )

下列图形可能是哪段代码执行后的结果?( ) 题目配图
A: import turtle turtle.shape("turtle") turtle.forward(120) turtle.right(90)
B: import turtle turtle.shape("turtle") turtle.forward(120) turtle.right(-90)
C: import turtle turtle.shape("turtle") turtle.forward(120) turtle.right(180)
D: import turtle turtle.shape("turtle") turtle.forward(120) turtle.right(-180)

正确答案:A

答案解析

根据题意,小海龟初始方向面向右侧移动,小海龟向前走了120,右转90度,A选项符合题意。

试卷来源:202503 青少年软件编程等级考试Python一级真题

本卷相关题目

在线做题 同科目题库