列表 list
L0=[1,2,3]
L1=[‘Stock A‘,‘Stock B‘,‘Stock C‘]
L2=[10,‘Price‘,[‘Industry 1‘,‘Industry 2‘]]
元祖
M=(‘Market‘,3.0,[10,20,30])
字典
d1={‘Stock A‘:30,‘Stock B‘:40}
In d1[‘Stock A‘]
Out 30
集合Set
Winners={‘Company A‘,‘Company B‘}
Losers=set([‘Company C‘,‘Company D‘])
S1=set()
set(‘Quant‘)
L1=[1,2,3]
L2=[2,2,1,3,3]
set(L1)
set(L2)
{1,2,3}
原文:https://www.cnblogs.com/jackie-ding/p/14408664.html