换行符

os.linesep  # 添加换行符,为了多系统捷荣

rstrip()  # 去掉换行符

原文地址:https://www.cnblogs.com/weiwei-python/p/10241959.html