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(tools)
Success #stdin #stdout 0.07s 14120KB
stdin
Standard input is empty
stdout
========================================
工具列表
创建的列表内容为: tools
列表长度(工具个数): 3
第一个工具是: LabelMe
最后一个工具是: CVAT
['LabelMe', 'VIA', 'CVAT']