Skip to content

Commit dcf8c8f

Browse files
committed
86차 3번 문제 풀이 (푸는중)
1 parent 3e11a88 commit dcf8c8f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

live8/test86/문제3/박희경.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import re
2+
3+
4+
def solution(files):
5+
answer = []
6+
names = []
7+
8+
for file in files:
9+
names.append(re.split(r'(\d+)', file)) # 정규식 참고
10+
# [['F-', '5', ' Freedom Fighter'], ['B-', '50', ' Superfortress'], ['A-', '10', ' Thunderbolt II'], ['F-', '14', ' Tomcat']]
11+
12+
return answer

0 commit comments

Comments
 (0)