Swift 判断字符是否为数字,字符转数字 巴斯1光年 2020-05-19 3,008 阅读1分钟 判断字符是否为数字 let char: Character = '' char.isNumber 字符转数字 let intNumber = char.wholeNumberValue