ord函数与chr函数

ord函数与chr函数

字母“A”对应的ASCII码值为65

chr函数

	>>> chr(65)
	'A'

ord函数

	>>>ord('A')
	65

你可能感兴趣的:(ord函数与chr函数)