更新时间:2023-11-28 15:02:22
这将验证输入:
Integer(gets) rescue nil
如何在Ruby中干净验证用户输入是否为整数?
如何在C ++中验证用户输入是双重的?
如何验证用户输入的是否是一个整数?