This commit is contained in:
2509165048
2026-04-21 11:31:12 +08:00
parent 6b1dde22a7
commit b04ac00a62

9
4-21 48.py Normal file
View File

@@ -0,0 +1,9 @@
#题目一
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'}")
#题目三