首页后端开发Pythonpython中空格符怎么表示

python中空格符怎么表示

时间2023-06-06 16:37:01发布访客分类Python浏览1111
导读: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
大家想回到塞班手机时代吗 python工程师是什么

游客 回复需填写必要信息