对于字符串,列表和元组等序列,*是重复运算符。 >>> s = "Hello" >>> s * 3 'HelloHelloHello' >>> L1 = [1,2,3] >>> L1 * 3 [1, 2, 3, 1, 2, 3, 1, 2, 3] >>> T1 ...
確定! 回上一頁