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]))
温馨提示:答案为网友推荐,仅供参考
相似回答