codegay 当前离线
少校
""" python文本内容居中显示.py http://bbs.bathome.net/thread-1289-1-1.html 2016年5月2日 04:51:33 codegay """ with open("a.txt") as f: txt=[r.strip() for r in f] w=max([len(r) for r in txt])+10 [print(r.center(w)) for r in txt]复制代码
TOP