path = 'C:/Users/UESRDER/Desktop/'file = "新建文本文档.txt"src = os.path.join(os.path.abspath(path1),file)#写入文件with open(src,"w") as f:f.write('hello!')
时间:2019-03-26 03:48:23
path = 'C:/Users/UESRDER/Desktop/'file = "新建文本文档.txt"src = os.path.join(os.path.abspath(path1),file)#写入文件with open(src,"w") as f:f.write('hello!')