본문 바로가기

지식의모듈화

검색하기
지식의모듈화
프로필사진 returnzero

  • 분류 전체보기 (59)
    • PS (46)
      • BOJ (3)
      • 프로그래머스 (34)
      • LeetCode (9)
    • Algorithm (3)
    • 미식시간 (0)
    • 5otby5(옷바이옷) (0)
    • Javascript (2)
    • CS면접 Handbook (3)
    • About me (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록문자열처리 (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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바