现有列表['000001.XSHE','000002.XSHE','000003.XSHE','000004.XSHE','000005.XSHE','000006.XSHE','000007.XSHE','000008.XSHE','000009.XSHE','000010.XSHE']请输出该列表的前3个元素,后3个元素
list_a = ['000001.XSHE', '000002.XSHE', '000003.XSHE', '000004.XSHE', '000005.XSHE', '000006.XSHE', '000007.XSHE', '000008.XSHE', '000009.XSHE', '000010.XSHE']print(list_a[0:3])print(list_a[-3:])