bytearray.isdigit()
Return true if all bytes in the sequence are ASCII decimal digits and the sequence is not empty, false otherwise. ASCII decimal digits are those byte values in the sequence b'0123456789'
.
For example:
>>> b'1234'.isdigit() True >>> b'1.23'.isdigit() False
Please login to continue.