Skip to content

Commit 3c9cc8f

Browse files
committed
Level 2 Udate
1 parent 5048d20 commit 3c9cc8f

File tree

2 files changed

+1231
-0
lines changed

2 files changed

+1231
-0
lines changed

lv_2/level_2.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/python
2+
# -*- coding: utf-8 -*-
3+
4+
if __name__ == "__main__":
5+
f = open('text_str.txt', 'r')
6+
re_special_char = f.read()
7+
new_str = ''.join(filter(str.isalpha, re_special_char))
8+
print(new_str)
9+
f.close()

0 commit comments

Comments
 (0)