求给位大神帮忙看下,我的换行有点问题
很奇怪,我是初学的小菜,请各位大神们帮我看下为什么我这代码会自动print一次就换一次行??麻烦了!!程序代码:
>>> def printMultiples(n): i = 1 while i<=6: print("\t %d \t"%(n*i)), i=i+1 >>> printMultiples(3) 3 6 9 12 15 18 >>>
>>> def printMultiples(n): i = 1 while i<=6: print("\t %d \t"%(n*i)), i=i+1 >>> printMultiples(3) 3 6 9 12 15 18 >>>