V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  qq191513  ›  全部回复第 1 页 / 共 1 页
回复总数  1
拿走不用谢我~
def print_and_save_txt(str=None,filename=r'log.txt'):
with open(filename, "a+") as log_writter:
print(str)
log_writter.write(str)
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3918 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 9ms · UTC 10:26 · PVG 18:26 · LAX 03:26 · JFK 06:26
♥ Do have faith in what you're doing.