task-3-2-1-Text-Processing-Introduction(半成品)
This commit is contained in:
13
work/work.py
Normal file
13
work/work.py
Normal file
@@ -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)
|
||||
Reference in New Issue
Block a user