How to use python f string to replace format()?

前端 未结 0 1130
长发绾君心
长发绾君心 2021-01-17 17:33

I am saving some urls in my constants.py file like this:

BASE_URL = \'https://{env}.my-site.com\'
ENV_URLS = {
    \'dev\': BASE_URL.format(env=\'dev\'),
             


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