Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

The web pages of Flask and Django templates display line breaks of python strings.

Shulou Source: shulou.com Published: 2022-06-03 02:49:23 10月04日 Update

For this problem, so,easy, change the string of python to the new line of html, and then ok, as follows:

Result=result.repalce ('\ nFengzhuo')

But,result is not satisfactory or no effect (if this is OK, you will not see this article), all the numbers are displayed on the template page -! Take a look at the source code and find that "" has been parsed into: "

Tags: Templates characters unsatisfactory satisfactory effects articles source code or questions pages strings web pages Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Linux Apple vpn Huawei