Python3不换行输出

使用print(xxx,end="")可实现不换行输出,例如:

temp = input("请输入一个整数:")
guess = int(temp)
while guess :
    i = guess-1
    j = guess
    while i:
        print(" ",end = "")
        i = i-1

你可能感兴趣的:(Python3不换行输出)