Python语言写入文件操作时报错TextIOWrapper.write() takes exactly one argument
如题所示,up在使用with open创建文件时候报错,报错如下所示
其中代码如下所示:
import os
if not os.path.exists("E:\Python_Project\LLM_Test_UESTC\Section5\\tt.txt"):#若没有这个文件,则创建文件with open("E…
2026/7/1 14:44:44