Dowemo
0 0 0 0

When using python, the default output for the print column table is output

Example: to print the fi & t three colum & of 9 * 9 table

For I in range ( 1, 3 ):
print
For in range ( 1, I + 1 ):
Print & % * % d = % d '% ( I, j, I * j )

Output is:

1*1=1
2*1=2
2*2=4
If you want it to be output by line, simply add a comma at the end of the print statement.

For I in range ( 1, 3 ):
print
For in range ( 1, I + 1 ):
Print & % * % d = % d '% ( I, j, I * j ),

输出为:
s1*1=1
2*1=2 2*2=4




Copyright © 2011 Dowemo All rights reserved.    Creative Commons   AboutUs