Notice
Recent Posts
Recent Comments
Link
목록Text (2)
아미(아름다운미소)
[ python] Extract sentences with specific words in a text file
python텍스트파일에서 특정 단어가 사용된 문장 추출하기 code = "찿는문자" document_text = open('sell_list.txt', 'r', encoding='utf-8') text_string = document_text.read() search = code if search in text_string: print("Ok") else: print("NONE") document_text.close()
랭귀지/python
2018. 10. 5. 09:30
[ASP] 엑셀 다운로드시, 셀속성 지정하는 방법
엑셀 다운로드시 셀속성을 변경해줘야 할 경우가 있습니다. 계좌번호 목록 같은경우 숫자 '0'으로 시작하는 경우 그리고 핸드폰번호 목록 같은경우에도 엑셀로 다운 받으면 숫자 '0'이 사라집니다. 이런 경우에는 셀 속성을 텍스트로 지정해주어야 하는데 그런 셀속성 변경하는 style값이 아래와 같은 것들이 있습니다. mso-number-format:\@ - text서식mso-number-format:"0\.000" - 소수점 3자리까지 서식 mso-number-format:"\#\,\#\#0\.000 - 소수점 3자리까지 & 숫자를 3자리씩 끊어서 [,]로 구분하는 서식 mso-number-format:""mm\/dd\yy" - 날짜서식 mso-number-format:":d\\-mmm\\-yyyy" - 날짜..
랭귀지/ASP
2018. 8. 12. 10:33