if __name__ == "__main__":
# 在相对路径下写入"test.txt"文件
with open("test.txt", "w") as file:
file.write("test file")
文件写操作
最新推荐文章于 2024-08-19 14:41:29 发布
if __name__ == "__main__":
# 在相对路径下写入"test.txt"文件
with open("test.txt", "w") as file:
file.write("test file")