python csv.write 写入带回车字符串

python csv.write 写入带回车字符串,写入后会自动在单元格换行,现在我只想在一个单元格里写入带回车的字符串,不知道咋整了……

涉及的问题是转义字符。
python \t 是代表tab,\n 代表回车......,
例:3 回车 4 ,在python写成print('3\n'4)
output:
3
4
如果不想用回车,input:print('3\n4')或print(r'3\n4')
output:
3\n4