005_while练习
2017-10-14 本文已影响0人
Nzkalhbxx
# 九九乘法表
row = 1
while row <= 9:
col = 1
while col <= row:
print(str(col) + "*" + str(row) + "=" + str(col * row), end="\t") # "\t"是制表符
col += 1
print()
row += 1

# 九九乘法表
row = 1
while row <= 9:
col = 1
while col <= row:
print(str(col) + "*" + str(row) + "=" + str(col * row), end="\t") # "\t"是制表符
col += 1
print()
row += 1