小编atm*_*atm的帖子

行不显示行显示?

我希望答案能够并排出来,而不是彼此重叠.我怎么做?

n=0

while 1:

    n=int(input("Enter N="))
    if n > 0:
             break
    print("Error. please enter only positive numbers.")
i=1
print("\nThe divisors of N are:",)
while i <=n:
    if (n%i) == 0:
        print(i,)
    i+=1
Run Code Online (Sandbox Code Playgroud)

python python-3.x

0
推荐指数
1
解决办法
88
查看次数

标签 统计

python ×1

python-3.x ×1