有没有现成的函数或类,可以实现判断一个字符串是否为int 或 double,谢谢!!!