标签: python char newline
当我这样做时
print >>file, "\n"
这实际上在我的Windows机器上写了一个“\ r \ n”。如何只写“\ n”字符而不是“\ r”?