python中的write()和open()

filename = ‘pragramming.txt’ with open(filename,‘w’) as fileobject: #使用‘w’来提醒python用写入的方式打开 fileobject.write(‘I love your name!’ ‘\nI love your cloth!’ ‘\nI love your shoes!’ ‘\nI love your hair!’) wi
相关文章
相关标签/搜索