在范围循环中,可以将+1添加到结尾字符,如下所示:
for char in range(ord(start_character), ord(end_character) + 1):
python中的ord将字符转换为整数。