scala 字符串转Int, Long 类型

val stringdemo = "123456"
val intdemo = stringdemo.toInt
val longdemo = stringdemo.toLong  
posted @ 2018-08-02 13:56  妖君你好  阅读(3634)  评论(0编辑  收藏  举报