示例#1
0
def is_loc_alnum(code):
    return code < 256 and isalnum(code)
示例#2
0
 def test_lower_upper(self):
     assert isupper(ord("A"))
     assert islower(ord("a"))
     assert not isalpha(ord(" "))
     assert isalnum(ord("1"))
     assert tolower(ord("A")) == ord("a")
示例#3
0
def is_loc_alnum(code):
    return code < 256 and isalnum(code)
示例#4
0
 def test_lower_upper(self):
     assert isupper(ord("A"))
     assert islower(ord("a"))
     assert not isalpha(ord(" "))
     assert isalnum(ord("1"))
     assert tolower(ord("A")) == ord("a")
示例#5
0
 def fn():
     assert isupper(ord("A"))
     assert islower(ord("a"))
     assert not isalpha(ord(" "))
     assert isalnum(ord("1"))
     assert tolower(ord("A")) == ord("a")