当前位置: 高中信息技术 / 单选题
  • 1. (2022·浙江模拟) 有如下Python程序段:

    #随机产生 n 个两位正整数存入数组a 中

    q=[-1]*n;top=-1

    for i in range(n):

        if a[i]%3==0 :

            top+=1

            q[top]=a[i]

        elif a[i]>q[top] and a[i]%2==0:

            top+=1

            q[top]=a[i]

            while top>-1:

                print(q[top],end=',')

                top-=1

    执行上述程序段后, 输出结果不可能是(   )

    A . 48,57, B . 74,80,76, C . 74,68,62,33,44, D . 98,45,78,88,

微信扫码预览、分享更方便