-
Notifications
You must be signed in to change notification settings - Fork 1
/
All_file.py
26 lines (21 loc) · 955 Bytes
/
All_file.py
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
import os
def findAllFile(base):
for root, ds, fs in os.walk(base):
for f in fs:
yield f
def main():
base = 'D:/Judy/BEH_dpm'
for i in findAllFile(base):
print(i)
print("=======================================================================================================")
print("=======================================================================================================")
print("=======================================================================================================")
print("=======================================================================================================")
print("=======================================================================================================")
tf = open("2.txt","rt")
for i in findAllFile(base):
print(tf.readline())
print(tf.readline())
tf.close()
if __name__ == '__main__':
main()