但是,它不会识别负数或小数,因为它只允许数字字符。 示例代码: my_string = "1234" if my_string.isdigit(): print("可以转换为数字 ...
確定! 回上一頁