• 2022-07-02 问题

    下面程序运行后输出是_______。a = [1, 2, 3, 4, [5, 6], [7, 8, 9]]s = 0for row in a: if type(row)==list: for elem in row: s += elem else: s+=rowprint(s)

    下面程序运行后输出是_______。a = [1, 2, 3, 4, [5, 6], [7, 8, 9]]s = 0for row in a: if type(row)==list: for elem in row: s += elem else: s+=rowprint(s)

  • 1