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

在Python中,下面代码的输出结果?( )import numpy as np arr = np.array([1, 2, 3, 4, 5]) print(arr[::2].sum())

A:15
B:9
C:6
D:报错

正确答案:B

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

本卷相关题目

在线做题 同科目题库