Update test.py
This commit is contained in:
parent
7ed885c986
commit
1bc55c335e
10
test.py
10
test.py
|
@ -5,13 +5,13 @@ import time
|
||||||
fake = Faker(locale="zh_CN")
|
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:
|
with open(file=path, mode="a", encoding="utf-8") as f:
|
||||||
if isinstance(strr, str):
|
if isinstance(ttt, str):
|
||||||
f.write(strr)
|
f.write(ttt)
|
||||||
|
|
||||||
if isinstance(strr, list):
|
if isinstance(ttt, list):
|
||||||
for line in strr:
|
for line in ttt:
|
||||||
f.write(line)
|
f.write(line)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue