From a3d26ee871b5e18dc1bf28612f2de4cefc884706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E4=BC=9F=E6=B3=B0?= <2509165006@student.example.com> Date: Tue, 21 Apr 2026 11:30:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2026.4.2106 林伟泰.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 2026.4.2106 林伟泰.py diff --git a/2026.4.2106 林伟泰.py b/2026.4.2106 林伟泰.py new file mode 100644 index 0000000..a81763c --- /dev/null +++ b/2026.4.2106 林伟泰.py @@ -0,0 +1,14 @@ +text='Hello' +print([ord(char)for char in text]) +print(chr(65)) + + +import math +A=[3,4] +B=[1,2] +A_plus_B=[A[0]+B[0],A[1]+B[1]] +print("1. A+B=",A_plus_B) +two_times_A=[2*A[0],2*A[1]] +print("2. 2*A=",two_times_A) +length_A=math.sqrt(A[0]**2+A[1]**2) +print("3. |A|,length_A") \ No newline at end of file