fork download
  1. tools=['labeIMe','VIA','CVAT']
  2. print('='*40)
  3. print('创建的列表内容为:',tools)
  4. print('列表长度(工具个数):',len(tools))
  5. print(len(tools))
  6. print('第一个工具是:',tools[0])
  7. print('最后的一个工具是:',tools[-1])
  8. print()
Success #stdin #stdout 0.07s 14064KB
stdin
Standard input is empty
stdout
========================================
创建的列表内容为: ['labeIMe', 'VIA', 'CVAT']
列表长度(工具个数): 3
3
第一个工具是: labeIMe
最后的一个工具是: CVAT