[Python] 파일 열기, 읽기 open('파일명입력', '모드 선택') file = open('hello.txt', 'r') 모드 'w'는 파일을 작성할 때 'r'은 파일을 읽을 때 Methods .read() : 내용을 하나의 문자열로 만들어 내보낸다 texts=file.read() Reference : https://www.boostcourse.org/cs122/ (모두를 위한 파이썬 7주차:파일 읽기) [Python] 개행(newline) 개행(newline)은 줄바꿈이다 입력방법 일반 키보드에서는 "엔터 위의 원화표시 + n" = \n 이렇게 치면 된다 그러면 프로그램에서는 역슬래쉬 + n 으로 나타난다 print() print()함수는 끝에 자동적으로 개행이 포함된다. Length \n 자체가 하나의 문자이다. string="ABCD\n" print(len(string)) 결과는 5 이다 Reference : https://www.boostcourse.org/cs122/ (모두를 위한 파이썬 7주차:파일열기) [ML] Colabolatory 에서 Auto ML 설치 (ERROR: pip's dependency resolver does not currently take into account all the packages that are installed.) !pip install --upgrade setuptools ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This datascience 0.10.6 requres folium==0.2.1, but you have folium 0.8.3 which is incompatible. WARNING: The following packages were previously imported in this runtime: [pkg_recources] You must restart the runtime in order to use newly installed versions. .. [ML] 데이터 변환(Data Transformation)/scaler/standardization, normalization, regularization 정리 수업시간에 들은 내용을 정리했는데 자주 보게 되어 올립니다 틀린 부분 알려주시면 감사합니다 이전 1 ··· 23 24 25 26 다음