组卷题库 > 高中信息技术试卷库
试题详情
有如下Python程序段:

from random import randint

s=["C++","Java","VB","Pascal","C","Python"]

for i in range(2):

    k=randint(0,2)*2

    s=s[:k]+s[k+1:]

print(s)

执行该程序段后,变量s的值不可能是(    )

A、["Java","VB","Pascal","C"]
B、["C++","Java","C","Python"]
C、["C++","VB","Pascal","Python"]
D、["C++","Java","Pascal","Python"]
知识点
参考答案
采纳过本试题的试卷
教育网站链接