Python read ()函数 · #以utf-8 的编码格式打开指定文件 · f = open("my_file.txt",encoding = "utf-8") · #输出读取到的数据 · print(f.read()) · #关闭文件 · f.close().
確定! 回上一頁