open函数: 可以帮助我们获取文件对象 内置函数 open(file, mode='r', buffering=-1, encoding=None, errors=None

txtFile=open("README.txt",mode="r",encoding="UTF-8")

发布了54 篇原创文章 · 获赞 0 · 访问量 717

猜你喜欢

转载自blog.csdn.net/beyongboy/article/details/104879048
今日推荐