Home >Backend Development >Python Tutorial >Python's print line break method
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);
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!