Update test.py
This commit is contained in:
parent
f2f95a22a7
commit
30418dcdcc
10
test.py
10
test.py
|
@ -5,13 +5,13 @@ import time
|
|||
fake = Faker(locale="zh_CN")
|
||||
|
||||
|
||||
def write_log(path, strr):
|
||||
def write_log(path, aaa):
|
||||
with open(file=path, mode="a", encoding="utf-8") as f:
|
||||
if isinstance(strr, str):
|
||||
f.write(strr)
|
||||
if isinstance(aaa, str):
|
||||
f.write(aaa)
|
||||
|
||||
if isinstance(strr, list):
|
||||
for line in strr:
|
||||
if isinstance(aaa, list):
|
||||
for line in aaa:
|
||||
f.write(line)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue