python Memo

list&tuple 运算

乘以constant

>>> x = ((1,2),)
>>> x*2
((1, 2), (1, 2))
>>> x = ((1,2))
>>> x*2
(1, 2, 1, 2)
>>> 
View Code

相关文章: