2022年9月7日
摘要: python中print内容打印到文件中 import sys file = open("502log.txt", 'a') sys.stdout = file print(time.asctime(),"开始请求。。。。。") file.close() 这里将print的内容写到文件中,这只是其中 阅读全文
posted @ 2022-09-07 16:51 每天进步一点点点点点 阅读(251) 评论(0) 推荐(0)