fork(1) download
  1. # your code goes here
  2. print("--- AI训练常用工具 ---") # 增加行1:打印标题
  3. tools = ["TensorFlow", "PyTorch", "Keras"]
  4. print("初始工具列表:",tools)
  5. print("当前工具数量:",len(tools)) # 增加行2:打印列表长度
  6. print("每个工具名称:") # 增加行3:提示下面逐项打印
  7. for t in tools: # 增加行4:循环逐项打印
  8. print("-",t)
  9.  
  10.  
Success #stdin #stdout 0.08s 14104KB
stdin
Standard input is empty
stdout
--- AI训练常用工具 ---
初始工具列表: ['TensorFlow', 'PyTorch', 'Keras']
当前工具数量: 3
每个工具名称:
- TensorFlow
- PyTorch
- Keras