单项选择题对于函数def getGoodsPrice(goods:String) = {val prices = Map(“book” -> 5, “pen” -> 2, “sticker” -> 1)prices.getOrElse(goods, 0)}结果说法错误的是? ()
A.getGoodsPrice("book")//等于5
B.getGoodsPrice("pen")//等于2
C.getGoodsPrice("sticker")//等于1
D.getGoodsPrice("sock")//等于“sock”