with open

with open("文件名","w") as f:                      # w:写文本文件     wb写二进制文件

    f.write()

猜你喜欢

转载自www.cnblogs.com/winterbear/p/10223358.html