일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- array
- github
- Python
- 파이썬
- scss
- hash table
- SasS
- leetcode
- 자료구조
- 컴포넌트
- string
- 코딩테스트
- java
- JavaScript
- Algorithm
- vue.js
- dynamic programming
- greedy
- JS
- sorting
- 변수
- computed
- HTML
- 자료형
- 백준
- CSS
- 알고리즘
- 프로그래머스
- JavaSceipt
- math
- Today
- Total
목록자료형 (2)
Posis
자료형이란 컴퓨터가 처리할 수 있는 자료의 형태 종류 설명 예시 기본 유형 숫자형 따옴표 없이 숫자로만 표기 let birthYear = 2000; 문자열 작은따옴표(' ')나 큰따옴표(" ")로 묶어서 나타냄 숫자를 따옴표로 묶으면 문자열로 인식 let greeting = 'Hello'; let birthYear = '2000'; 논리형 참(true)과 거짓(false)이라는 2가지 값만 있는 유형 true와 false는 소문자로만 표시 let isEmpty = true; 복합 유형 배열 하나의 변수에 여러 개의 값을 저장할 수 있음 let seasons = ['봄', '여름', '가을', '겨울']; 객체 함수와 속성을 함께 포함 let date = new Date(); 특수 유형 undefined ..

자료형 종류 - 숫자: 정수형(int), 실수형(float) - 시퀀스: 문자열(str), 리스트(list), 튜플(tuple) - 논리형(Boolean) 하나씩 출력해서 확인해 보겠습니다. number = 123 number2 = 123.456 str1 = "HelloWorld" list1 = ["hello", "world"] tuple1 = ("hello", "world") isTrue = True print(type(number)) print(type(number2)) print(type(str1)) print(type(list1)) print(type(tuple1)) print(type(isTrue)) list와 tuple의 차이점 list와 tuple은 많이 비슷하지만 몇 가지 다른 점이 존재합..