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

Python's print line break method

高洛峰
高洛峰Original
2017-03-10 18:41:572386browse

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);

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!

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