
INTRO 1. 반복문 : iterational code block 2. 조건문 : conditional code block 3. 사용자 정의 함수 : costomized function 1. 반복문 for for (i in range) { print(i) } while x = 1 while ( x= 50) over50[i] = 1 else over50[i] = 0 } print(rand_a) print(over50) cat("count for results : ",sum(over50),"\n") 출력결과 > source("~/Rcoding/test_conditional_code_block.R", echo=TRUE) > rm(list = ls()) > # setwd("/Users/[YourMacID]/R..
INTRO Code Block은 제어문/반복문이나 함수에서 콜론(:)을 기준으로 들여쓰기된 덩어리 모양 제어문은 case-by-case를 구성하고 반복문은 중복 제거와 단순화의 목적을 가짐 Target/Model에 따라 coding 방식은 개발자의 특성에 따라 다르지만 제어흐름은 2가지로 구분함 1. 조건문 : if-else, if-elif-else 2. 반복문 : for / while 1. if-else, if-elif-else swich, case를 다루는 언어도 있으나 python은 if-elif-else로 커버 다음은 회원가입 sequence를 단순하게 구현했을 때 if-else와 if-elif-else 사용 방법이다. mebers 객체는 dic의 user1,user2로 구성 input()를 이용..
Intro - Editor : sublime text3 - python 3.9.1 - numpy 1.19.4 - xlrd 2.0.1 - openpyxl 3.0.5 Data row col x y d x y xs ys 1 1 -300 300 1 -301 302 2 4 2 -250 300 1 -251 302 2 4 3 -200 300 1 -201 302 2 4 4 -150 300 1 -151 302 2 4 5 -100 300 1 -101 302 2 4 6 -50 300 1 -51 302 2 4 7 0 300 1 -1 302 2 4 8 50 300 1 49 302 2 4 9 100 300 1 99 302 2 4 10 150 300 1 149 302 2 4 11 200 300 1 199 302 2 4 12 250..
- Total
- Today
- Yesterday
- Model
- 라즈베리파이
- Regression
- DAQ
- git
- vscode
- github
- pyserial
- 확진
- 자가격리
- DS18B20
- 코로나19
- arduino
- server
- SSH
- Django
- Templates
- ERP
- sublime text
- CSV
- COVID-19
- r
- 코로나
- Raspberry Pi
- analysis
- template
- Pandas
- MacOS
- raspberrypi
- Python
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |