Basic(Python)
Numerical: int float
2 ** 5 - 1 = 31
2 * 3.0 = 6.0
3 * 'x' = 'xxx'
Boolean: bool
- Strings: str
- Matrix
- Euler
Collections
tuple 元组 不可变序列
>>> tup = ( 1 , 2 , 3 )
>>> tup
( 1 , 2 , 3 )
>>>
>>> () #空元组
()
>>>
>>> 55 , #一个值的元组
( 55 ,)
list 可变的序列
>>> list ( 'python' )
[ 'p' , 'y' , 't' , 'h' , 'o' , 'n' ]
dict
d = {key1 : value1, key2 : value2 }
set
- …