
# coding: utf-8

# In[ ]:


def plalindrome(line):
    for i in range(1, len(line)*2):
        if i == 1:
            print(' '*(len(line)*2-1) +line[0])
        elif i%2 == 1:
            print(' '*(len(line)*2-i) + line[:i//2] + line[i//2] + line[i//2-1::-1])
        else:
            print(' '*(len(line)*2-i) + line[:i//2] + line[i//2-1::-1])

def main():
    text = '赏花归去马如飞'
    plalindrome(text)
    

if __name__ == '__main__':
    main()


f7f8bc2ec5cdf56aac12023d147d0422edcea1ac
<mask token>

def plalindrome(line):
    for i in range(1, len(line) * 2):
        if i == 1:
            print(' ' * (len(line) * 2 - 1) + line[0])
        elif i % 2 == 1:
            print(' ' * (len(line) * 2 - i) + line[:i // 2] + line[i // 2] +
                line[i // 2 - 1::-1])
        else:
            print(' ' * (len(line) * 2 - i) + line[:i // 2] + line[i // 2 -
                1::-1])


<mask token>

def plalindrome(line):
    for i in range(1, len(line) * 2):
        if i == 1:
            print(' ' * (len(line) * 2 - 1) + line[0])
        elif i % 2 == 1:
            print(' ' * (len(line) * 2 - i) + line[:i // 2] + line[i // 2] +
                line[i // 2 - 1::-1])
        else:
            print(' ' * (len(line) * 2 - i) + line[:i // 2] + line[i // 2 -
                1::-1])


def main():
    text = '赏花归去马如飞'
    plalindrome(text)


<mask token>

def plalindrome(line):
    for i in range(1, len(line) * 2):
        if i == 1:
            print(' ' * (len(line) * 2 - 1) + line[0])
        elif i % 2 == 1:
            print(' ' * (len(line) * 2 - i) + line[:i // 2] + line[i // 2] +
                line[i // 2 - 1::-1])
        else:
            print(' ' * (len(line) * 2 - i) + line[:i // 2] + line[i // 2 -
                1::-1])


def main():
    text = '赏花归去马如飞'
    plalindrome(text)


if __name__ == '__main__':
    main()


# coding: utf-8

# In[ ]:


def plalindrome(line):
    for i in range(1, len(line)*2):
        if i == 1:
            print(' '*(len(line)*2-1) +line[0])
        elif i%2 == 1:
            print(' '*(len(line)*2-i) + line[:i//2] + line[i//2] + line[i//2-1::-1])
        else:
            print(' '*(len(line)*2-i) + line[:i//2] + line[i//2-1::-1])

def main():
    text = '赏花归去马如飞'
    plalindrome(text)
    

if __name__ == '__main__':
    main()

