Use the isnumeric() method or the isdigit() method to check if the string is a number or not. Alternatively, use type conversion inside exception handling.
確定! 回上一頁