chr和ord

如果n是非负数,那么chr(n)是ASCII值为n的单字符串。
如果str是单字符串,那么ord(str)是这个字符的ASCII值

猜你喜欢

转载自blog.csdn.net/Gaibb123/article/details/88073257
今日推荐