createTxt.py

from DataCleaning.library.functions.changeDirectory import *

def createTxt(string, target, targetPath = ""):
tempWD = os.getcwd()
if targetPath != "":
os.chdir(targetPath)
else:
development2Processed()
with open(target, "w", encoding='utf-8') as f:
f.write(string)
os.chdir(tempWD)
上一篇:appendString2Txt.py


下一篇:python黑科技库:FuckIt.py,让你代码从此远离bug