with open("文件名","w") as f: # w:写文本文件 wb写二进制文件 f.write() 转载于:https://www.cnblogs.com/winterbear/p/10223358.html