话不多说,直接看代码
number1 = 9 while number1>0: print (str(number1) + "*"+ str(number1) + "=" + str(number1**2)) number1 -=1
第一次写错了,还是int 及str的问题。看错误代码
number1 = 9 while number1>0: print (number1 + "*"+ number1 + "=" + number1**2) number1 -=1
原文地址:https://www.cnblogs.com/bdua/p/12115702.html
时间: 2024-10-10 05:07:24