摘要:
1、 >>> a = ("aaa","bbb","ccc","ddd","eee","fff") >>> a[:2] + a[3:] ## 删除元素ccc ('aaa', 'bbb', 'ddd', 'eee', 'fff') >>> a[:2] + a[4:] ## 删除元素ccc和ddd ('a 阅读全文
摘要:
1、 >>> a = ("aaa","bbb","ccc","ddd","eee") >>> type(a) <class 'tuple'> >>> a[:2] + ("xxx",) + a[2:] ('aaa', 'bbb', 'xxx', 'ccc', 'ddd', 'eee') >> 阅读全文