📜  5.4.7 分类python代码示例

📅  最后修改于: 2022-03-11 14:46:43.751000             🧑  作者: Mango

代码示例1
123456789101112131415List=[['animals','cheetah','pelican','red panda'],['noises','vrooom!','whirrr!','woosh!'['programming languages','Python','Java','C++']]i=0k=0for i in range(0,2):   print("Category:"+List[i][0])   for k in range(1,3):       print("\t"+List[i][k])XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX