#pragma mark 是否纯数字
+ (BOOL)validateIsPureNumber:(NSString *)str{
NSScanner* scan = [NSScanner scannerWithString:str];
int val;
BOOL isInt = [scan scanInt:&val] && [scan isAtEnd];
NSScanner* scanF = [NSScanner scannerWithString:str];
float valF;
BOOL isFloat = [scanF scanFloat:&valF] && [scanF isAtEnd];
return isInt||isFloat;
}