记录一下,将数组打印到txt文件中
import numpy as np
text_file = open("test.txt", "w")
print("test\n", file=text_file)
print("test", file=text_file)
记录一下,将数组打印到txt文件中
import numpy as np
text_file = open("test.txt", "w")
print("test\n", file=text_file)
print("test", file=text_file)