From 5cf921208ffb7b7d4550df646145cfd64f175df4 Mon Sep 17 00:00:00 2001 From: 2509165008 <2509165008@student.edu.cn> Date: Tue, 21 Apr 2026 11:33:20 +0800 Subject: [PATCH] =?UTF-8?q?task-3-2-1-Text-Processing-Introduction(?= =?UTF-8?q?=E5=8D=8A=E6=88=90=E5=93=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- work/work.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 work/work.py diff --git a/work/work.py b/work/work.py new file mode 100644 index 0000000..96b5dff --- /dev/null +++ b/work/work.py @@ -0,0 +1,13 @@ +#1 +a="Hello" +for i in a: + print(ord(i)) +print(chr(65)) + +#3 +A=[3,4] +B=[1,2] +AB=[(A[0]+B[0]),(A[1]+B[1])] +print(AB) +A2=[(A[0]*2),(A[1]*2)] +print(A2)