Files
task-3-2-1-Text-Processing-…/07李天赐.py
2026-04-21 11:25:26 +08:00

10 lines
271 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

str1 = "Hello"
print("Hello 每个字符的ASCII码")
for char in "Hello":
print(f"字符 '{char}' 的ASCII码{ord(char)}")
print("-" * 30)
result = chr(65)
print(f"ASCII码 65 对应的字符是:{result}")
print(f"验证是否为大写A{result == 'A'}")