上传文件至 /

This commit is contained in:
2026-04-21 11:30:47 +08:00
parent 7b53e72feb
commit a3d26ee871

14
2026.4.2106 林伟泰.py Normal file
View File

@@ -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")