5, "pen" -> 2, "sticker" -> 1)结果说法错误的是?A.prices("sticker") // 等于 1B.(prices + ("sh…"> -->
当前位置:首页 > 题库

单选题:h0242. 对于val prices = Map("book" -> 5, "pen" -> 2, "sticker" -> 1)结果说法错

Luz4年前 (2022-05-04)题库441
对于val prices = Map("book" -> 5, "pen" -> 2, "sticker" -> 1)结果说法错误的是?




A.prices("sticker") // 等于 1
B.(prices + ("shoes" -> 30))("shoes")// 等于 30
C.(prices - "pen")("book") // 等于 5
D.prices("sock") // 等于 0


答案:D