age = '18' a = parseInt(age) b = parseFloat(age) 转载于:https://www.cnblogs.com/my-love-is-python/p/9291432.html