完成作业3-2-1

This commit is contained in:
2509165016
2026-04-21 11:26:23 +08:00
parent 666b39adb1
commit 37553257a8
4 changed files with 113 additions and 0 deletions

5
1-1.py Normal file
View File

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