#创建文件
#file_path:文件路径
#msg:即要写入的内容
def create__file(file_path,msg):
f=open(file_path,"a+")
f.write(msg)
f.close
#output = open('result.txt', 'a+') #a+ 追加写入
#output = open('result.txt', 'w+')
#w+ 删除以前的重新写入
#创建文件
#file_path:文件路径
#msg:即要写入的内容
def create__file(file_path,msg):
f=open(file_path,"a+")
f.write(msg)
f.close
#output = open('result.txt', 'a+') #a+ 追加写入
#output = open('result.txt', 'w+')
#w+ 删除以前的重新写入