X Tutup
Skip to content

Commit abe9719

Browse files
committed
Fix 0003 and 0004
1 parent ae38c19 commit abe9719

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Drake-Z/0003/0003.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ def search_redis():
2424

2525
if __name__ == '__main__':
2626
filename = 'active_code.txt'
27-
write_to_mysql(filename)
28-
search_mysql()
27+
write_to_redis(filename)
28+
search_redis()

Drake-Z/0004/0004.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
import re
99

10-
def tongji(file_path):
10+
def statistics(file_path):
1111
f = open(file_path, 'r').read()
1212
f = re.split(r'[\s\,\;,\n]+', f)
1313
print(len(f))
1414
return 0
1515

1616
if __name__ == '__main__':
1717
file_path = 'English.txt'
18-
tongji(file_path)
18+
statistics(file_path)

0 commit comments

Comments
 (0)
X Tutup