-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrite_text.py
More file actions
103 lines (81 loc) · 3.69 KB
/
write_text.py
File metadata and controls
103 lines (81 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import os
with open("images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\black'):
for filename in files:
f = os.path.join(path, filename+" 0")
a.write(str(f) + os.linesep)
with open("images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\blue'):
for filename in files:
f = os.path.join(path, filename+" 1")
a.write(str(f) + os.linesep)
with open("images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\green'):
for filename in files:
f = os.path.join(path, filename+" 2")
a.write(str(f) + os.linesep)
with open("images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\orange'):
for filename in files:
f = os.path.join(path, filename+" 3")
a.write(str(f) + os.linesep)
with open("images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\purple'):
for filename in files:
f = os.path.join(path, filename+" 4")
a.write(str(f) + os.linesep)
with open("images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\red'):
for filename in files:
f = os.path.join(path, filename+" 5")
a.write(str(f) + os.linesep)
with open("images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\white'):
for filename in files:
f = os.path.join(path, filename+" 6")
a.write(str(f) + os.linesep)
with open("images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\yellow'):
for filename in files:
f = os.path.join(path, filename+" 7")
a.write(str(f) + os.linesep)
with open("m_images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\black_m'):
for filename in files:
f = os.path.join(path, filename)
a.write(str(f) + os.linesep)
with open("m_images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\blue_m'):
for filename in files:
f = os.path.join(path, filename)
a.write(str(f) + os.linesep)
with open("m_images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\green_m'):
for filename in files:
f = os.path.join(path, filename)
a.write(str(f) + os.linesep)
with open("m_images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\orange_m'):
for filename in files:
f = os.path.join(path, filename)
a.write(str(f) + os.linesep)
with open("m_images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\purple_m'):
for filename in files:
f = os.path.join(path, filename)
a.write(str(f) + os.linesep)
with open("m_images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\red_m'):
for filename in files:
f = os.path.join(path, filename)
a.write(str(f) + os.linesep)
with open("m_images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\white_m'):
for filename in files:
f = os.path.join(path, filename)
a.write(str(f) + os.linesep)
with open("m_images.txt", "a") as a:
for path, subdirs, files in os.walk(r'C:\Users\asus\Desktop\resimler_b\yellow_m'):
for filename in files:
f = os.path.join(path, filename)
a.write(str(f) + os.linesep)