일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- Dialog
- Flutter
- LifeCycle
- data
- TEST
- 앱바
- Kotlin
- 계측
- Compose
- android
- 안드로이드
- binding
- activity
- textview
- livedata
- Coroutines
- DART
- CustomScrollView
- scroll
- 앱
- Navigation
- viewmodel
- appbar
- textfield
- 테스트
- ScrollView
- Button
- drift
- intent
- tabbar
- Today
- Total
목록분류 전체보기 (358)
Study Record
#include #include using namespace std; int getNum(int a){ int num = 0; while (a > 0) { a = a * 0.1; num++; } return num; } string getString(string str, int start, int count) { string s = ""; for (int i = 0; i < count; i++) { s += str[start+i]; } return s; } int solution(string s) { int answer = s.size(); int len = s.size(); for (int i = 1; i = len) { tmp_answer += len - j; break; } } if (tmp_ans..
#include #include using namespace std; string solution(string new_id) { string answer = ""; // 1,2,3 단계 for(int i=0; i= 'A' && word = 'a' && word = '0' && word
#include #include using namespace std; int getRank(int num){ if(num >= 6) return 1; if(num == 5) return 2; if(num == 4) return 3; if(num == 3) return 4; if(num == 2) return 5; return 6; } vector solution(vector lottos, vector win_nums) { vector answer; int winnings_num = 0, max_winnings_num = 0; int blank = 0; for(int i=0; i
1. vector 라이브러리 #include #include #pragma warning (disable:4996) int main() { // 형식 : vector 변수이름; vector a; // 마지막 원소 뒤에 원소를 삽입한다. a.push_back(3); // 원소의 개수를 리턴한다. a.size(); // 원소를 얻는 방법 std::cout 3 cout
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/tTX8l/btrmvepvX09/KW547hv6EVnGSrk7t8iVI0/img.png)
※ 모듈 패스 모듈을 사용하기 위해서는 모듈 패스에 지정된 위치나 현재 위치에 모듈이 존재해야 한다. 1. 모듈 패스 확인하기 # python3 >>> import sys >>> sys.path ['', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/usr/local/lib/python3.5/dist-packages', '/usr/lib/python3/dist-packages'] 2. 모듈 패스 추가하기 (쉘 환경) # export PYTHONPATH="/test/mymodules" -> PYTHONPATH 변수 활용 (코드)..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/KJxhu/btrmiEQsQRk/aETy97MS14aQe8tNWkK440/img.png)
1. 클래스와 인스턴스 ☞ 객체(Object) 객체(Object)란 실제 세상에 있는 것을 하나의 사물로 정의 class는 blue print(설계도)와 비슷하다. 설계만 한것이지 사용하도록 따로 설정하여 사용한다. 실제 세계에 존재하는 실체(instance)를 객체라고 하고, 객체들의 공통점을 간추려서 개념적으로 나타낸것을 클래스(class)라고 한다. ☞ class 특성 클래스(class)는 "class 클래스이름:" 형식으로 정의한다. 클래스(class) 내부에 정의된 함수를 메소드(method)라고 한다. 객체(EX: teaji)사용은 "인스턴스명 = 클래스()"와 같이 만든다. 객체의 메소드를 사용할 때는 "인스턴스.메소드(== 객체.메소드)" 형식을 사용한다. class 안의 method는 s..
소켓 - Server import socket import sys host = '127.0.0.1' port = 4444 try: server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind((host, port)) server.listen(1) client, address = server.accept() except Exception as e: sys.exit('Error:', e) else: print("Connected by", address) recv_msg = b'' while True: data = client.recv(1024) if not data: client.close() break recv_msg += data prin..
산술 연산자 Operator Description Example + 더하기 a + b = 30 - 빼기 a - b = -10 * 곱하기 a * b = 200 / 나누기 b / a = 2.0 % 나머지 b % a = 0 // 몫 a // c = 3 ** 제곱 a ** c = 1000 비교 연산자 Operator Description Example == 값이 동일하다 (a == b) → false != 값이 동일하지 않다 (a != b) → true > 왼쪽 값이 오른쪽 값보다 크다 (a > b) → false = b) → false