Update test.py

This commit is contained in:
p53209761 2022-10-19 17:02:35 +08:00
parent 7ed885c986
commit 1bc55c335e
1 changed files with 5 additions and 5 deletions

10
test.py
View File

@ -5,13 +5,13 @@ import time
fake = Faker(locale="zh_CN")
def write_log(path, strr):
def write_log(path, ttt):
with open(file=path, mode="a", encoding="utf-8") as f:
if isinstance(strr, str):
f.write(strr)
if isinstance(ttt, str):
f.write(ttt)
if isinstance(strr, list):
for line in strr:
if isinstance(ttt, list):
for line in ttt:
f.write(line)