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]))
上一篇點逗號是什么意思
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]))