Datasets:

Languages:
Chinese
Tags:
Not-For-All-Audiences
License:
Limour commited on
Commit
15acbd5
·
verified ·
1 Parent(s): 93ecd0f

Upload 11 files

Browse files
翻译小说/特德·姜/七十二个字母.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67a67cc3a9e29a92dc0953dfdaa03c2acf4b87988deaf6b48643ad12c3603de4
3
+ size 40976
翻译小说/特德·姜/你一生的故事.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a8554c299ec819352ce0a64498d3faa69e29b6a876cd9071e69ac214b944c07
3
+ size 48568
翻译小说/特德·姜/呼吸—宇宙的毁灭.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2599fdf7373ad427e3c8f7a3fbdba57059a288c49680d32eab815732dd828f25
3
+ size 14821
翻译小说/特德·姜/商人和炼金术士之门.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da3fa9349be00875043f90f2b7c967d73d36fbd3e2313a473dc6c6ab22b67ff4
3
+ size 25523
翻译小说/特德·姜/地狱是上帝不在的地方.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c8c32b12e4d31ec7b17d3dff5a3b5762502e4dbc094667a36d07dc913373845
3
+ size 29212
翻译小说/特德·姜/巴比伦塔.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:421abb815dd6e779e7730c6555953011d36628b5bbfc1f639d4077184274ce03
3
+ size 19083
翻译小说/特德·姜/特德·姜.py ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 line:
37
+ data.append(line)
38
+
39
+ if r'www.wulali.info' in data[-1]:
40
+ data = data[:-2]
41
+
42
+ with open(b + name, 'w', encoding='utf-8') as f:
43
+ f.write('\n'.join(data))
44
+
翻译小说/特德·姜/赏心悦目——审美干扰镜提案风波纪实.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eea8ad52d6ddeba989cce35dbb880e6aa4a2c39e79bfc1bce26a5d30b36d7a10
3
+ size 30513
翻译小说/特德·姜/软件体的生命周期.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a93851841e370ca0cdcb4eea7b549601dde7192997a79f2b2472904b806d3cd2
3
+ size 78112
翻译小说/特德·姜/除以零.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cdfe8122fa83814e936b945afde944238434e3a6659377103c1f1b4b2167d5d4
3
+ size 14999
翻译小说/特德·姜/领悟.txt.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:429d348ae4e468e3461081d31d232d686baef7ef9ae5cc4edbec72c18f25a4b8
3
+ size 35632