python 空格键 怎么表示

如题所述

# !/usr/bin/python27
# coding: utf8
文件每字符面加空格
with open('a.txt', 'r+') as filehandler:
with open('newtxt.txt','w') as filehandler2:
filehandler2.write(''.join([f+' ' for fh in filehandler for f in fh]))
温馨提示:答案为网友推荐,仅供参考
相似回答