← 返回 meta 的题目列表Check Valid Number
类型:online_judge
Given a string, determine if it is a valid number. A valid number can be an integer or a decimal, such as "123", "4.56", "-78.9". Strings that do not conform to the number format, such as "123abc", "--6", should return False.
Example
Input
1.2231