본문 바로가기

분류 전체보기

(78)
[Spring-boot and Angular] 블로그 만들기 #1 먼저 spring 사이트에서 프로젝트를 만든다 https://start.spring.io/ 불러오는 중입니다... 그룹과 프로젝트 명을 입력하고 web, lombok, jpa, mysql dependencies 를 추가 한다. 그리고 프로젝트를 만든다. https://jsijsi99.tistory.com/6 Spring Boot 시작하기 - #5_2. 이클립스 Srping boot 웹 프로젝트 생성 / 가동 Spring Boot 시작하기 - #5_2. Eclipse Srping Boot 웹프로젝트 생성 / 가동 이번 장에서는 #3. 에서 진행 하였던 centOS에 Spring boot 웹프로젝트 생성을 동일하게 Eclipse 에서 같은 방식으로 진행해 보도록 하.. jsijsi99.tistory.com ..
[React-Native] ERR! code ELIFECYCLE , errno 1 에러 error Invalid regular expression: /(.*\\__fixtures__\\.*|node_modules[\\\]react[\\\]dist[\\\].*|website\\node_modules\\.*|heapCapture\\bundle\.js|.*\\__tests__\\.*)$/: Unterminated character class. Run CLI with --verbose flag for more details. SyntaxError: Invalid regular expression: /(.*\\__fixtures__\\.*|node_modules[\\\]react[\\\]dist[\\\].*|website\\node_modules\\.*|heapCapture\\bundle\.js|...
Javascript async & await javasript 에서 async 를 통해 비동기 처리가 완료 될 때까지 await 을 통해 기다릴 수 있다. await 은 async 를 선언해야지 사용 가능 https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Statements/async_function
Python [import] 1) import 방법 import math print(math.ceil(1.2)) print(math.fsum([1, 2, 3])) 위 처럼 import 작성 후 import 함수를 사용하면 된다. 하지만, 위 처럼 외부 api 전체를 불러올 필요가 없다. (효율측면) 2) 특정 함수만 import from math import ceil, fsum print(ceil(1.2)) print(fsum([1, 2, 3])) 이렇게 하면 1, 2는 같은 결과 값을 갖는다. 3) import 한 함수의 명칭을 변경 할 수 있다. from math import ceil, fsum as sum print(ceil(1.2)) print(sum([1, 2, 3])) - 위의 fsum 함수를 sum 으로 명칭 변경하여 ..
Python [for in] days = ("Mon", "Tue", "Wed", "Thu", "Fri") for day in days: if day is "wed": break else: print(day) 결과 값: Mon Tue for 변수명 in 리스트명: 리스트 안의 데이터를 차례로 day 에 넣는다. python for 문은 for in 한 구문 밖에 지원을 하지않는다. 위 형식처럼 리스트 내의 key 를 가지고 반복 수행 할 구문을 작성하는 형식
Python [논리 연산자 and, or, not] def age_check(age): print(f"you are {age}") if age 20 and age < 25: print("you are still young") elif not age < 50: print("you have to check your condition") else: print("enjoy your drink") age_check(23) https://docs.python.org/3/library/stdtypes.html#boolean-operations-and-or-not
Python if - elif - else def plus(a, b): if type(b) is int or type(b) is float: return a + b elif type(b) is str: print("dont put here str") else: return None print(plus(12, "10")) 결과 값 : dont put here str None 소괄호 로 묶지 않고 위 처럼 if - elif - else 조건문 : 를 사용하면 된다.
Python [format] 스트링 안에 변수 값 넣고 출력 def say_hello(name, age): return "hellp {} you are {} year".format(name, age)