Spaces:
Sleeping
Sleeping
up
Browse files
crazy_functions/批量Markdown翻译.py
CHANGED
@@ -42,7 +42,7 @@ class PaperFileGroup():
|
|
42 |
def write_result(self):
|
43 |
manifest = []
|
44 |
for path, res in zip(self.file_paths, self.file_result):
|
45 |
-
with open(path + f'{gen_time_str()}.trans.md', 'w', encoding='utf8') as f:
|
46 |
manifest.append(path + '.trans.md')
|
47 |
f.write(res)
|
48 |
return manifest
|
|
|
42 |
def write_result(self):
|
43 |
manifest = []
|
44 |
for path, res in zip(self.file_paths, self.file_result):
|
45 |
+
with open(path + f'.{gen_time_str()}.trans.md', 'w', encoding='utf8') as f:
|
46 |
manifest.append(path + '.trans.md')
|
47 |
f.write(res)
|
48 |
return manifest
|