完成作业X

This commit is contained in:
2509165007
2026-04-21 11:25:26 +08:00
parent e41bac7289
commit f02b6cb35f
2 changed files with 10 additions and 0 deletions

9
07李天赐.py Normal file
View File

@@ -0,0 +1,9 @@
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'}")

1
homework Submodule

Submodule homework added at 49d5c41f62