scala 字符串转Int, Long 类型

val stringdemo = "123456"
val intdemo = stringdemo.toInt
val longdemo = stringdemo.toLong  

猜你喜欢

转载自blog.csdn.net/fangyuandoit/article/details/81357608
今日推荐