diff --git a/test.py b/test.py index 3d1d1cf..7966582 100644 --- a/test.py +++ b/test.py @@ -5,13 +5,13 @@ import time fake = Faker(locale="zh_CN") -def write_log(path, log): +def write_log(path, strr): with open(file=path, mode="a", encoding="utf-8") as f: - if isinstance(log, str): - f.write(log) + if isinstance(strr, str): + f.write(strr) - if isinstance(log, list): - for line in log: + if isinstance(strr, list): + for line in strr: f.write(line)