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
- node.js
- Local Search
- AWS
- 코드
- computerscience
- 컴퓨터공학
- 알고리즘
- CS
- 문자열
- 컴퓨터과학
- Search Algorithm
- typescript
- 파이썬
- 문자열처리
- multer-s3
- 철학
- 배포
- Simulated Annealing
- node배포
- lightsailor
- Hill Climbing
Archives
- Today
- Total
목록문자열처리 (1)
지식의모듈화
[python] 특정 문자열이 발견되면 해당 문단을 지워주는 코드
''' 22/01/17 Choi Deletes 5 consecutive lines of text that starts with specific string. ''' import os #acquire lowest directroy name #ex) home/sample -> sample fullpath=os.getcwd() ls=fullpath.split(os.path.sep) w1pbtxt=ls[-1]+"_w1.pbtxt" w2pbtxt=ls[-1]+"_w2.pbtxt" print(w1pbtxt) check=0 # used as a sign of indication when deleting 5 consecutive lines iter=3 #first three text starting with "libr..
Algorithm
2022. 1. 17. 15:29