How to create a class from this code at python

前端 未结 0 485
长情又很酷
长情又很酷 2021-01-23 23:19

is there an elegant way to create a class from the attached code:

ratings_data = { \'TV-PG\': 7,\'TV-MA\': 18,\'TV-Y7-FV\': 7,\'TV-Y7\': 7,
            \'TV-14\':         


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