From f02b6cb35fced4bf8b66a0a3dc17e4e0d6ac0903 Mon Sep 17 00:00:00 2001 From: 2509165007 <2509165007@student.edu.cn> Date: Tue, 21 Apr 2026 11:25:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BD=9C=E4=B8=9AX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 07李天赐.py | 9 +++++++++ homework | 1 + 2 files changed, 10 insertions(+) create mode 100644 07李天赐.py create mode 160000 homework diff --git a/07李天赐.py b/07李天赐.py new file mode 100644 index 0000000..2e5e1c7 --- /dev/null +++ b/07李天赐.py @@ -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'}") + diff --git a/homework b/homework new file mode 160000 index 0000000..49d5c41 --- /dev/null +++ b/homework @@ -0,0 +1 @@ +Subproject commit 49d5c41f628bea3b0e9e426e27e55fbb91250b8d