Eclipse 1. Error occurred during initialization of boot layer eclipse 첫 설치 후 코드 첫 실행시 발생 해결 방법 : module-info.java 삭제 2. Editor does not contain a main type 소스코드가 src 폴더가 아닌 최상위 폴더에 저장되어서 발생 해결방법 1. 소스코드를 src 폴더로 옮김 해결방법 2. 소스코드가 최상위 폴더(프로젝트 폴더)에서도 실행되도록 프로젝트 생성시에 설정 (Project layout > Use project folder as root for sources and class files) 해결방법 3. 최상위 폴더에서 오른쪽 > 속성(Properties) > Source 폴더를 최상위 폴더..
Language
파이썬 문제 풀이 중 만난 에러 메시지 1. Object of type set is not JSON serializable list를 set으로 변경하여 return 했을 때 발생 해결 방법 : set을 list() 로 감싸서 return 2. EOL while scanning string literal 오타 있는지 확인 특히 str 주변 3. TypeError: 'builtin_function_or_method' object is not subscriptable [] 연산자를 사용할 수 없음 ([] 을 잘못 썼을 때) 4. Key error 딕셔너리 key가 기존 key에 없을 때 5. EOF Error End of File 입력이 없는데 계속 입력 받을 때 6. python typeerror: 'in..
* replace a.replace("a를":"b로":"n번") a = 'xoxoxoxoxoxoxo' a.replace('xo', '#', 1) print(a) >>> #xoxoxoxoxoxo * 정렬 : sort() a = [2, 1, 3, 4, 5] a.sort() print(a) >>> [1, 2, 3, 4, 5] 내림차순 하는 법 1) a.sort() a.reverse() 2) a.sort(reverse = True)
https://youtu.be/LeTeb3ImxI0 1. RENAME : 기존 테이블(topic) 이름을 topic_backup으로 변경 RENAME TABLE topic TO topic_backup; SHOW TABLES; +-------------------------+ | Tables_in_opentutorials | +-------------------------+ | topic_backup | +-------------------------+ 2. 테이블 topic, author을 신규 생성 - topic 테이블의 author_id와 author 테이블의 id로 연결할 예정 2-1. topic 테이블 생성 CREATE TABLE topic( -> id INT(11) NOT NULL AUTO_IN..