半成品

This commit is contained in:
250165008
2026-04-23 16:03:59 +08:00
parent 5cf921208f
commit 8601793184
2 changed files with 28 additions and 13 deletions

View File

@@ -1,13 +0,0 @@
#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)

28
work/work(2).py Normal file
View File

@@ -0,0 +1,28 @@
import numpy as np
#1
a="Hello"
for i in a:
print(ord(i))
print(chr(65))
#3
A=np.array([3,4])
B=np.array([1,2])
AB=A+B
print(AB)
A2=2*A
print(A2)
moA=np.linalg.norm(A)
print(moA)
#4
C=np.array([1,2,3])
D=np.array([4,5,6])
dotCD=np.dot(C,D)
print(dotCD)
#5
Doc1="Python是编程语言"
Doc2="Java是编程语言"
Doc1="Python Python Python"