用Python实现的99乘法表,结果存储在txt文本中
result=open('./mul_result.txt','w')
x=1
while x<10:
y=1
while y<x+1:
multiple=x*y
result.write(str(y)+'*'+str(x)+'='+str(multiple)+' ')
y=y+1
result.write('\n')
x=x+1
result.close()