2021年7月22日
摘要: 摘要 知其然,更要知其所以然。前段时间用 String 转换 Int 处理时,发现一种情况返回 nil,就换成 String 转换 Double 的方式处理。今天就要来看看这种返回 nil 的情况是怎么造成的。 当有小数的 String 文本转换为 Int 类型时,返回的值并不是咱们想要的向下取整后 阅读全文
posted @ 2021-07-22 21:06 我为双鱼狂 阅读(359) 评论(0) 推荐(0)