Python:TypeError: ‘int‘ object is not callable初学易犯错误
今天跟着教程布置的任务写了一段这样的代码:products=[["iphone",6888],["MacPro",14800],["小米6",2499],["Coffee",31],["book",60],["Nike",699]]i=0print("--------商品列表-----------")forproinproducts:print(i,"",pro[0],"",pro[1])i+=1