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
- python
- mssql
- sqlite
- PyQt5
- pandas
- swift
- GIT
- 맛집
- tensorflow
- PyQt
- MS-SQL
- 다이어트
- Unity
- Excel
- 유니티
- javascript
- PER
- 날짜
- 함수
- IOS
- node.js
- ASP
- ubuntu
- Linux
- 리눅스
- urllib
- port
- 라즈베리파이
- MySQL
- flutter
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