Apply re.sub to list If dictionary value == x

后端 未结 0 1279
死守一世寂寞
死守一世寂寞 2020-12-01 03:24

Python newbie trying to do something that worked in Perl but can’t find the Pythonic equivalent.

I have a dictionary:

stock = {‘p’: 1, ‘r’: 2, ’t’: 1}
         


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