games=[]file=open("egames.txt",'r')for game in file: games.append(game)file.close()print("All games made by Rockstar Games")for game in games: currentline=game.split(",") publisher=currentline[5] if publisher=="Rockstar Games": print(currentline[0],currentline[1])我没有收到任何错误,我只是没有打印任何内容] 使用 Rockstar Games。
添加回答
举报
0/150
提交
取消