파일에서 문자열을 검색하는 간단한 파이썬 코드가 있습니다.path=c:\path, 어디서c:\path부분은 다를 수 있습니다. 현재 코드는 다음과 같습니다. def find_path(i_file): lines = open(i_file).readlines() for line in lines: if line.startswith("Path="): return # what to do here in order to get line content after "Path=" ? 텍스트를 얻는 간단한 방법은 무엇입니까Path=? 시작Python 3.9, 당신이 사용할 수있는removeprefix: 'Path=helloworld'.removeprefix('Path=') # 'helloworld' 문자열이 고정 된 경우 다..