Home>Article>Backend Development> How to wrap python using cmd
Some friends want to try writing Python scripts in cmd, but find that the writing process is extremely difficult. Because in cmd, as long as the enter key is pressed, the program will be executed, which will worry a lot of people. Next, I will show you how to perform line wrapping operations written in Python in cmd.
In fact, when we write python programs in cmd, Python uses backslash ("\") as a newline character. (Python3.7.0 example)
As shown in the figure below:
The above is the detailed content of How to wrap python using cmd. For more information, please follow other related articles on the PHP Chinese website!