完成作业

This commit is contained in:
2509165021
2026-04-21 11:25:48 +08:00
parent 6e5a075363
commit 5581feae5f
2 changed files with 42 additions and 0 deletions

4
test.py Normal file
View File

@@ -0,0 +1,4 @@
s = "Hello"
for char in s:
print(f"'{char}' 的ASCII码: {ord(char)}")
print(f"ASCII码65对应的字符: {chr(65)}")