字符转ASCLL
str = “a”
print(ord(str)) #打印出a的ASCLL值
str ="1"
print(ord(str)) #打印出1的ASCLL值
ASCLL转字符
print(chr(97)) #打印出ASCLL值为97的字符
字符转ASCLL
str = “a”
print(ord(str)) #打印出a的ASCLL值
str ="1"
print(ord(str)) #打印出1的ASCLL值
ASCLL转字符
print(chr(97)) #打印出ASCLL值为97的字符