📜  带有 csv.writer 的空行 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:39.737000             🧑  作者: Mango

代码示例1
# Python 2
with open('/pythonwork/thefile_subset11.csv', 'wb') as outfile:
    writer = csv.writer(outfile)

# Python 3
with open('/pythonwork/thefile_subset11.csv', 'w', newline='') as outfile:
    writer = csv.writer(outfile)