2007年09月20日 星期四 12:24
Hi Pythonn List, tuple是immutable的,如何来实现 tuple(tuple1,tuple2...tuplei)--需要insert 子tuple-tuplei 到tuple中呢? Thanks Weimin
2007年09月20日 星期四 13:03
>>> t1 = (1,2) >>> t2 = (3,4) >>> t3 = (5,6) >>> t = t1,t2,t3 >>> t ((1, 2), (3, 4), (5, 6)) >>> id(t1) 14001416 >>> id(t[0]) 14001416 2007/9/20, Weimin Li <wli at sst.com>: > Hi Pythonn List, > > tuple是immutable的,如何来实现 tuple(tuple1,tuple2...tuplei)--需要insert 子tuple-tuplei 到tuple中呢? > > Thanks > Weimin > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -- wayne http://blog.csdn.net/wayne92
Zeuux © 2025
京ICP备05028076号