摘要: 一、Ruby语言本身 String 对象的is_digit?通过scan方法实现: 3.0.1 :039 > '0108551'.scan(/\D/).empty? => true 3.0.1 :040 > '0108551a'.scan(/\D/).empty? => false 3.0.1 :0 阅读全文
posted @ 2020-11-24 16:15 佣工7001 阅读(105) 评论(0) 推荐(0) 编辑