Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- 함수
- 날짜
- IOS
- flutter
- Unity
- PyQt5
- pandas
- Excel
- PyQt
- urllib
- ASP
- sqlite
- port
- GIT
- PER
- MS-SQL
- MySQL
- 다이어트
- javascript
- 리눅스
- swift
- tensorflow
- Linux
- mssql
- node.js
- 유니티
- python
- 라즈베리파이
- ubuntu
- 맛집
Archives
목록2018/10/05 (1)
아미(아름다운미소)
[ 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