What should I do if python's carriage return cannot be a line feed but is executed?

coldplay.xixi
Release: 2020-10-26 15:32:00
Original
27505 people have browsed it

The solution to the problem that python's carriage return cannot be a line break but is executed: first open the code input; then change the single or double quotes to triple quotes to run, or add the escape character [\] to the code.

What should I do if python's carriage return cannot be a line feed but is executed?

The solution to the problem that python carriage return cannot wrap:

The first automatic line wrap,

We can operate as we usually do when typing

But this operation will cause errors

What should I do if pythons carriage return cannot be a line feed but is executed?

You can try to enter the order at this time Change the quotation marks or double quotation marks into triple quotation marks

I found that it can be run this time

What should I do if pythons carriage return cannot be a line feed but is executed?

In addition to the above method, we can also use escape Symbol\

For this symbol we can look at this chart

What should I do if pythons carriage return cannot be a line feed but is executed?

Use \n on the chart to achieve line breaks , but it should be noted that you can use single quotes and triple quotes, but there will be a grammatical error when using double quotes

What should I do if pythons carriage return cannot be a line feed but is executed?

##Related free learning recommendations :python video tutorial

The above is the detailed content of What should I do if python's carriage return cannot be a line feed but is executed?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!