摘要: 导入文本文档并输出在终端 # Python 3.x版本 import os # 获取根目录下文件的绝对路径 root_path = "./" file_path = os.path.join(root_path, 'pinglun.txt') try: # 打开文本文件并读取所有内容 with op 阅读全文
posted @ 2024-01-23 19:33 橘子味芬达水 阅读(55) 评论(0) 推荐(0)