본문 바로가기

반응형

분류 전체보기

(85)
[Python] 문자열 (String) ' ' 혹은 " " 둘 다 사용 가능 String 내에 작은따옴표 혹은 큰따옴표가 있을 때, 서로 다른 따옴표로 String 감싸야 함. print('hello "MY" python') print("hello 'MY' python") 줄바꿈을 포함한 문자열 (\n) multiline의 경우, ''' ''' 혹은 """ """ 으로 사용 가능 print('''hello "MY" python''') ---> hello "MY" python - 연산자 + 두 String Concatentation String + String 만 가능 - 연산자 * String n번 Concatentation String * int 만 가능 print('hi' * 3) --->hihihi - 인덱싱 (indexing) Stri..
[Python] 연산자 - ** 연산자 : x ** y = x의 y제곱 print(3 ** 4) --> 81 - // 연산자 : 나눗셈 몫을 반환 print(7 // 4) --> 1 - 논리 연산자 # and 연산자 a == 100 and b == 200 # or 연산자 a == 100 or b == 200 # not 연산자 not (a == 100 and b == 100)
[Python] VS code 개발환경 설정 (확장팩 설치) 아래와 같이 확장팩을 설치
[Python] 인터프리터 언어 vs 컴파일 언어 - 인터프리터 언어 소스코드를 기계어로 변환하는 과정없이 한줄 한줄 해석하여 바로 명령어를 실행하는 언어 (ex. R, Python, Ruby) 인터프리터가 직접 한 줄씩 읽고 따로 기계어로 변환하지 않기 때문에 빌드 과정 존재 X Runtime 상황에서는 한 줄씩 실시간으로 읽어서 실행하기 때문에 컴파일 언어에 비해 속도가 느림 코드 변경시 빌드 과정없이 바로 실행이 가능 -컴파일 언어 소스코드를 모두 기계어로 변환(바이너리 파일로 변환) 후에 기계(JVM 같은 가상 머신)에 넣고 기계어 코드를 실행 (ex. C, C++, JAVA) 소스코드를 기계어로 번역하는 빌드 과정에서 시간이 소요됨 Runtime 상황에서는 실행 속도가 빠름
[PostgreSQL] join
[PostgreSQL] select, insert, update, delete 1. SELECT SELECT account_id, account_pw, nickname, region, birthday, gender, input_date, input_id, update_date, update_id FROM public.account_info; 2. INSERT INSERT INTO public.account_info (account_id, account_pw, nickname, region, birthday, gender, input_date, input_id, update_date, update_id) VALUES('', '', '', '', '', '', '', '', '', ''); 3.UPDATE UPDATE public.account_info SET account_id=''..
[Flutter] RefreshIndicator (Pull to Refresh) 스크롤을 맨 상단으로 올려 refresh 하는 기능 RefreshIndicator( onRefresh: () => requestNew(), child: ListView.builder( itemCount: 7, itemBuilder: (BuildContext context, int index) { }), ), onRefresh 함수가 실행되며, onRefresh 함수는 Future type return 해야한다. Future requestNew() async { //for test await Future.delayed(Duration(milliseconds: 1000)); //refresh contents await resetStorage(); //refresh 내용 State 반영 setState(() ..
[Flutter] Stateless & Stateful Widget Stateful Widget : State를 활용한 lifecycle을 이용해야할 때 사용 initiate() : 최초 Widget 생성 시에만 호출됨. setState() : Widget build() 함수 재 호출.

반응형