未通过原因:近期在全网出现过高度相似文章被认为是旧闻 ----

 

 

s = '''
赠汪伦
唐代:李白



李白乘舟将欲行,忽闻岸上踏歌声。
桃花潭水深千尺,不及汪伦送我情。
'''
old_rows_l = s.split('\n')
new_cols_num = len(old_rows_l)
new_rows_num = max([len(i.replace(' ', '')) for i in old_rows_l])
l_l = []
new_rows_d = {i: ['  ' for ii in range(new_cols_num)] for i in range(new_rows_num)}
for i in range(new_cols_num):
    for ii in range(len(old_rows_l[i])):
        new_rows_d[ii][i] = old_rows_l[i][ii:ii + 1]
for i in new_rows_d:
    s = '{}{}'.format(''.join(new_rows_d[i]), '\n')
    print()
s_new = '\n'.join([''.join(new_rows_d[i]) for i in new_rows_d])
print(s_new)

  

 

posted @ 2018-04-25 13:33  papering  阅读(262)  评论(0编辑  收藏  举报