Python 字符串isdigit() 方法 ... txt = "50800" x = txt.isdigit() print(x) ... 如果所有字符都是数字,则isdigit() 方法将返回True,否则返回False。
確定! 回上一頁