Datasets:
Delete 翻译小说/特德·姜
Browse files- 翻译小说/特德·姜/七十二个字母.txt.gz +0 -3
- 翻译小说/特德·姜/你一生的故事.txt.gz +0 -3
- 翻译小说/特德·姜/呼吸—宇宙的毁灭.txt.gz +0 -3
- 翻译小说/特德·姜/商人和炼金术士之门.txt.gz +0 -3
- 翻译小说/特德·姜/地狱是上帝不在的地方.txt.gz +0 -3
- 翻译小说/特德·姜/巴比伦塔.txt.gz +0 -3
- 翻译小说/特德·姜/特德·姜.py +0 -44
- 翻译小说/特德·姜/赏心悦目——审美干扰镜提案风波纪实.txt.gz +0 -3
- 翻译小说/特德·姜/软件体的生命周期.txt.gz +0 -3
- 翻译小说/特德·姜/除以零.txt.gz +0 -3
- 翻译小说/特德·姜/领悟.txt.gz +0 -3
翻译小说/特德·姜/七十二个字母.txt.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:714efddfd5bb485940ba17c9d53e8edcee3734483c9c669e257b148fffa92ffe
|
3 |
-
size 40976
|
|
|
|
|
|
|
|
翻译小说/特德·姜/你一生的故事.txt.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:3d9d56d65abc44d201ed0919e5cd4f16eb4ff5e7581f18aa9985f733e3e7ba7c
|
3 |
-
size 48568
|
|
|
|
|
|
|
|
翻译小说/特德·姜/呼吸—宇宙的毁灭.txt.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:f2e77e28472a127ca158da989ca9570cc131c98e0bf2d5ccc878069a678373c6
|
3 |
-
size 14821
|
|
|
|
|
|
|
|
翻译小说/特德·姜/商人和炼金术士之门.txt.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:f23e97f0f79173c5c876186119e509845034d52b58e37ea4e17d4c7c980aa5ff
|
3 |
-
size 25523
|
|
|
|
|
|
|
|
翻译小说/特德·姜/地狱是上帝不在的地方.txt.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:74993357406e7a34fc9df2a5e60e9d4e870cabf31d10b9248283ed5ccc847f49
|
3 |
-
size 29212
|
|
|
|
|
|
|
|
翻译小说/特德·姜/巴比伦塔.txt.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:4a0ae3a42001675b64c30b4e7c3bddf81d685d4c6b64e3a821bb1301b7261aba
|
3 |
-
size 19083
|
|
|
|
|
|
|
|
翻译小说/特德·姜/特德·姜.py
DELETED
@@ -1,44 +0,0 @@
|
|
1 |
-
def get_all_files_in_directory(directory, ext=''):
|
2 |
-
import os
|
3 |
-
import re
|
4 |
-
custom_sort_key_re = re.compile('([0-9]+)')
|
5 |
-
|
6 |
-
def custom_sort_key(s):
|
7 |
-
# 将字符串中的数字部分转换为整数,然后进行排序
|
8 |
-
return [int(x) if x.isdigit() else x for x in custom_sort_key_re.split(s)]
|
9 |
-
|
10 |
-
all_files = []
|
11 |
-
for root, dirs, files in os.walk(directory):
|
12 |
-
for file in files:
|
13 |
-
if file.endswith(ext):
|
14 |
-
file_path = os.path.join(root, file)
|
15 |
-
all_files.append(file_path)
|
16 |
-
return sorted(all_files, key=custom_sort_key)
|
17 |
-
|
18 |
-
|
19 |
-
a = get_all_files_in_directory(r'E:\ali\来自分享\名家作品\特德·姜', ext='.txt')
|
20 |
-
|
21 |
-
b = r'D:\datasets\tmp'
|
22 |
-
|
23 |
-
for path in a:
|
24 |
-
data = []
|
25 |
-
name = path[path.rindex('\\'):]
|
26 |
-
print(name)
|
27 |
-
try:
|
28 |
-
with open(path, 'r') as f:
|
29 |
-
lines = f.readlines()
|
30 |
-
except UnicodeDecodeError:
|
31 |
-
with open(path, 'r', encoding='utf-8') as f:
|
32 |
-
lines = f.readlines()
|
33 |
-
|
34 |
-
for line in lines:
|
35 |
-
line = line.strip()
|
36 |
-
if r'www.wulali.info' in line:
|
37 |
-
print(data.pop())
|
38 |
-
continue
|
39 |
-
if line:
|
40 |
-
data.append(line)
|
41 |
-
|
42 |
-
with open(b + name, 'w', encoding='utf-8') as f:
|
43 |
-
f.write('\n'.join(data))
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
翻译小说/特德·姜/赏心悦目——审美干扰镜提案风波纪实.txt.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:0a6eddbd8fe68c215c301fd976ed755257f60b1c4c06279dde6b62d0a4a867ba
|
3 |
-
size 30513
|
|
|
|
|
|
|
|
翻译小说/特德·姜/软件体的生命周期.txt.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:f39cce7816afeee61b1ea0092b4a0ebc99861ce1f131c51078438bfec1f6a456
|
3 |
-
size 78112
|
|
|
|
|
|
|
|
翻译小说/特德·姜/除以零.txt.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:56f66d5c73aa916ad149fbca35b7cbe9eae930e5691ffc9baab817b604aad16e
|
3 |
-
size 14999
|
|
|
|
|
|
|
|
翻译小说/特德·姜/领悟.txt.gz
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:65626df7d493d5588a5c74df3685996cc44ca5fec6410d51a46d8115c02ffc1b
|
3 |
-
size 35632
|
|
|
|
|
|
|
|