完成作业

This commit is contained in:
2509165025
2026-04-21 11:22:02 +08:00
parent 7428796d86
commit b04442bbf5
3 changed files with 39 additions and 0 deletions

7
2509165025.py Normal file
View File

@@ -0,0 +1,7 @@
s = "Hello"
print("Hello 每个字符的ASCII码")
for char in s:
print(f"{char}: {ord(char)}")
print("\n验证65对应的字符")
print(f"chr(65) = {chr(65)}")