fork download
  1. #定义列表,存储3个常见标注工具名称
  2. tools=["LabelMe","VIA","CVAT"]
  3. #输出原始列表
  4. print("="*40)
  5. print("工具列表")
  6. print("创建列表内容:",tools)
  7. print("列表长度(工具数量):",len(tools))
  8. print("第一个工具是:",tools[0])
  9. print("最后一个工具是:",tools[-1])
  10. print()
Success #stdin #stdout 0.07s 14148KB
stdin
Standard input is empty
stdout
========================================
工具列表
创建列表内容: ['LabelMe', 'VIA', 'CVAT']
列表长度(工具数量): 3
第一个工具是: LabelMe
最后一个工具是: CVAT