s = "Hello" for char in s: print(f"'{char}' 的ASCII码: {ord(char)}") print(f"ASCII码65对应的字符: {chr(65)}")