摘要: 打开文件 #方法一:使用系统内置函数open def open_file(): try: file = open(r"test.txt", "r") print("文件名称:",file.name) print("文件是否已关闭:",file.closed) print("文件访问模式:", fil 阅读全文
posted @ 2021-09-06 21:59 zwx901323 阅读(55) 评论(0) 推荐(0)