목록STUDYING (155)
MY MEMO
Set - HashSet 중복을 허용 X순서를 유지 XHashSet 은 Hashing을 이용해서 구현한 Collection+) 저장 순서를 유지하려면 LinkedHashSet+) Hashing이란 많은 양의 데이터를 그보다 작은 크기의 테이블에 mapping시켜 저장할 수 있도록 하는 데이터 관리 기법 TreeSet- BinarySearchTree형태로 데이터를 저장- Red Black Tree (이진 트리의 범주를 멋어나지 않으면서 자동으로 균형을 맞추는 알고리즘) ex)Set set = new HashSet();set.add("양효선");Set sortedSet = new TreeSet(set); List Collection interface를 상속순서 존재중복 허락배열과 같이 index 0부터 시작..
인하대학교 컴퓨터공학과의 과목 Web Crawling 하기 http://www.inha.ac.kr/cop/search/curriculum.do?siteId=kr&gubun=1&deptCode=1184&majorCodeH=217&majorCodeS=0009&codeS=0183&id=kr_030201190000 1) F12를 눌러서 개발자 모드로! 2) html에서 table코드를 본다 3) tbody에서 첫번째 것을 모두 얻어온다. 4) temp를 누르면 개수 출력 5) for문으로 모든 것을 출력+) innerHTML은 태그 사이의 text만을 출력한다.
1) Rivescript에서 한글을 사용하려면 python 2.x버전이 아닌 python 3.x버전을 사용해야한다 코드)#!/usr/bin/python3 # Python 3 example from rivescript import RiveScript import re rs = RiveScript(utf8=True) rs.unicode_punctuation = re.compile(r'[.,!?;:]') rs.load_directory("./eg/brain") rs.sort_replies() print("""This is a bare minimal example for how to write your own RiveScript bot! For a more full-fledged example, try runn..
나는 환경변수를 설정하지 않아서 생겨난 오류였다. 1) 해결 방법 Path에 python이 설치된 경로 와 python이 설치된 경로.python실행파일 이름PYTHONPATH에 python이 설치된경로.python실행파일 이름 python이 설치된 경로 : C:\Python36-32python이 설치된 경로.python실행파일 이름 : C:\Python36-32\python.exe
출처 : https://programmers.co.kr/learn/courses/9 method chaining자기 자신을 리턴하여 계속해서 자신의 메소드를 호출하는 방식 StringBuffer sb2 = new StringBuffer();StringBuffer sb3 = sb2.append("hello");if(sb2 == sb3) System.out.println("sb2 == sb3"); sb2의 StringBuffer class에서는 this를 반환sb3에 넣어주고 두개를 비교하면같다고 나오게 된다 이를 Method Chaining이라고 한다 ex)String str2 = new StringBuffer().append("Hello").append(" World").toString(); import..
출처 : https://www.rivescript.com/docs/tutorial .rive 파일 + : trigger -> match the user's message+) trigger is always lower cased "Hello Bot", "HELLO BOT", or "hello bot" and it will match the trigger all the same. - : command is how you define a reponse to a triggerif you writing the many - command, rivescript will randomly choose the answer Say something Random + say something random- This {rando..
1) pycharm에서 한글 쓰기#coding:utf-8 추가
#include #include int main() { //memory 할당 int*Marr = (int*)malloc(sizeof(10)); //memory 할당과 함께 초기화 int*Carr = (int*)calloc(1, sizeof(10)); //size 다시 설정 int*Rarr = (int*)realloc(Carr,10*sizeof(int)); return 0; }
1. git/git hub (Version Control System)의 개념 잡기 출처 : https://www.youtube.com/watch?v=ImatGhE_9Ho (완전 잘 설명되어있어요!) git init이라는 명령어를 입력하면 같은 디렉토리 내에서 .git이라는 파일이 생성된다. .git은 staging과 local repository를 위한 파일이다. 1) Working directory : .git이 생성된 directory 2) staging : 파일의 snapshot을 저장하는 곳 staging에 저장해 놓은 후 따로 local repository에 저장하거나, 한번에 올릴 수 있음 3) local repository : database라고 생각하면 편함 파일과 파일의 version을..
출처 : https://programmers.co.kr/learn/courses/2 함수를 정의하고 list에서 맞는 value값이 있으면 return 해주는 문제! def safe_index(my_list, value): if value in my_list: index = my_list.index(value); return index else : return None safe_index([1,2,3,4,5], 5)safe_index([1,2,3], 5) list의 insert sort reverse 연습문제 list1 = [1, 2, 3, 4] # 아래줄에서 list1의 1번째 자리에 8을 넣고 원래 있던 값은 오른쪽으로 밀어 보세요.list1.insert(1,8) # 아래줄에서 list1을 작은수 부..