现有列表['000001.XSHE', '000002.XSHE', '0000

免费题库2022-08-02  29

问题 现有列表['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:])
转载请注明原文地址:https://tihaiku.com/congyezige/2425233.html

最新回复(0)