我们从Python开源项目中,提取了以下9个代码示例,用于说明如何使用string.octdigits()。
def test_attrs(self): string.whitespace string.ascii_lowercase string.ascii_uppercase string.ascii_letters string.digits string.hexdigits string.octdigits string.punctuation string.printable
def test_attrs(self): string.whitespace string.lowercase string.uppercase string.letters string.digits string.hexdigits string.octdigits string.punctuation string.printable
def datatype(str, check="N"): """rexx datatype function""" try: if len(str) == 0: return check == "X" or check == "B" except Exception: return check == "X" or check == "B" if check == "N": return _isnum(str) if check == "A": return verify(str, _letters_digits) == -1 elif check == "L": return verify(str, string.ascii_lowercase) == -1 elif check == "M": return verify(str, string.ascii_letters) == -1 elif check == "U": return verify(str, string.ascii_uppercase) == -1 elif check == "O": return verify(str, string.octdigits) == -1 elif check == "X": return verify(str, string.hexdigits) == -1 elif check == "S": return (str[0] in string.ascii_letters) and \ (verify(str[1:], _letters_digits_symbol) == -1) else: return _isnum(str) # insert