摘要: 接下来,将文本转换为十进制数字。对 stringInTextField 调用 toDouble(),并将其存储在一个名为 cost 的变量中。 val cost = stringInTextField.toDouble() 不过,这样行不通 - 需要对 String 调用 toDouble()。原来 阅读全文
posted @ 2023-04-11 10:42 SunShine789 阅读(37) 评论(0) 推荐(0)