// txt_path
txt_path ='./text.txt'
//打开txt文件,写入模式(会覆盖原有内容)
txt = open(txt_path,'w')
i=5
txt.write(f"the is a print:{i}.n")
txt.close()

// txt_path
txt_path ='./text.txt'
//打开txt文件,写入模式(会覆盖原有内容)
txt = open(txt_path,'w')
i=5
txt.write(f"the is a print:{i}.n")
txt.close()