How to assign an integer for every element in the list

前端 未结 0 1983
离开以前
离开以前 2021-01-25 12:28

I have a list like this:

classes = list(set(os.listdir(current_dir + \'/Logos/\')))
print(classes)

[\'twitch.png\', \'logitech.png\', \'nba2k2.png\', \'microsoft         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题