with open as f以开放为Fwith open as f以开放为F
以with open('./data.txt','w',encoding='utf-8') as fp:fp.write('hello world')为例将open的部分看为fp之后用fp.write便可以将hello world字符串写入fp中也就是open打开的data.txt我的个人理解,如有不对,欢迎指正,谢谢。