完成作业X

This commit is contained in:
2509165019
2026-04-21 11:24:07 +08:00
parent 57999c3b5a
commit f3077dc1f0
3 changed files with 40 additions and 0 deletions

6
test.py Normal file
View File

@@ -0,0 +1,6 @@
#1
s = "Hello"
for char in s:
print(f"{char} 的ASCII码是{ord(char)}")
#2
print(chr(65))