Pythonic way to create a long multi-line string

后端 未结 27 1740
滥情空心
滥情空心 2020-11-22 00:47

I have a very long query. I would like to split it in several lines in Python. A way to do it in JavaScript would be using several sentences and joining them with a +<

27条回答
  •  粉色の甜心
    2020-11-22 01:00

    Hey try something like this hope it works, like in this format it will return you a continuous line like you have successfully enquired about this property`

    "message": f'you have successfully inquired about '
               f'{enquiring_property.title} Property owned by '
               f'{enquiring_property.client}'
    

提交回复
热议问题