Home>Article>Backend Development> How to wrap python using cmd

How to wrap python using cmd

little bottle
little bottle Original
2019-05-18 15:58:09 13050browse

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.

How to wrap python using 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:

How to wrap python using cmd

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!

Statement:
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
Previous article:What is numpy in python Next article:What is numpy in python