右对齐字符串

def show():

    print('{:+^25}'.format(123456))

if __name__ == '__main__':
    show()

猜你喜欢

转载自blog.csdn.net/qq_34788903/article/details/89971535