列表-Ⅳ
>>> s =>>> t =
>>> s + t
>>> s * 3
>>> maxtrix = [, , ]
>>> maxtrix = [,]
>>> maxtrix
[]
>>> maxtirx = []
>>> maxtrix = [, , ]
>>> for i in maxtrix:
... for each in i :
... print(each)
...
1
2
3
4
5
6
7
8
9
>>> maxtrix
>>> maxtrix
1
>>> maxtrix
3
>>> A = * 3
>>> A
>>> for i in range(3):
... A = * 3
...
>>> A
[, , ]
>>> x = "FishC"
>>> y = "FishC"
>>> x is y
True
>>> # is检验两个变量是否指向同一个对象
>>> x =
>>> y =
>>> x is y
False
页:
[1]