将字符串写入到文件中

1182次阅读  |  发布于5年以前
def saveToFile(content, filePath):
    output = open(filePath, 'w')
    output.write(content)
    output.close()

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8