Home > Backend Development > Python Tutorial > Python's print line break method

Python's print line break method

高洛峰
Release: 2017-03-10 18:41:57
Original
2383 people have browsed it

This article introduces python's print line wrapping method

Output 9*9 multiplication table.

for i in range(1, 10):
    print
    for j in range(1, i+1):
        print "%d*%d=%d" % (i, j, i*j);
Copy after login

Pythons print line break method

If you want to print it in multiplication table format, you need to replace the punctuation after print with; or without

The above is the detailed content of Python's print line break method. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template