파이썬에서는 어떻게 배열에있는 텍스트에서 일반적인 패턴을 찾을 수있는 알고리즘을 개발하고 이러한 항목의 발생 횟수를 말할 수 있습니다.파이썬 배열의 모든 일반적인 패턴을 찾으십시오
For ex:
line_arr=""" :)hello hi there,My name is 'pixel' can i speak to 'Tom'
Hi, tom here :) 'pixel'
how are u doing today.
i just called to ask whats the cost of the microwae oven is it $50 or $60
it is $75
any d $iscounts on this..
10% to 30%"""
reg_dict={}
for l in line_arr:
#find all common patterns and update it in an dictionary
은 우리 모두 스마일 작은 따옴표로 이름, currecncy는 $로 시작받을 수 percentages..Also 더 이상 일반적인 일들도 우리가 전혀 dictionary..Is이 가능한이 업데이트 말한다면 ..
매우 복잡한 프로그램이므로 ..... ..... – Rajeev