Files
2509165048 b04ac00a62 3-2-1
2026-04-21 11:31:12 +08:00

10 lines
229 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.

#题目一
word="Hello"
print("方式一字符的ASCII码")
for ch in word:
print(f"'{ch}'->{ord(ch)}")
print("\n方式二验证chr(65)")
print(f"chr(65)='{chr(65)}'")
print(f"验证成果:{chr(65)=='A'}")
#题目三