python中空格符怎么表示
导读:python中空格符怎么表示?# !/usr/bin/python27# coding: utf8文件每字符面加空格with open('a.txt', 'r+' as filehandler:with open('newtxt.txt'...
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]))!
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: python中空格符怎么表示
本文地址: https://pptw.com/jishu/64210.html