일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- access modifier
- dbeaver
- 파이참
- Up Casting
- Wrapper class
- arraycopy
- Inbound
- 스트림
- finalize
- generic programming
- pycharm
- singletone
- 엔드포인트
- has-a
- 얕은 복사
- Stream
- down casting
- 깊은 복사
- 내부클래스
- node.js
- Java
- identityHashCode
- 셔뱅
- public static final
- shebang
- lambda
- extends
- constructor
- parameter group
- 자바
- Today
- Total
목록Python (23)
٩(๑•̀o•́๑)و
>>> sayHello = 'hello world' >>> print(sayHello) hello world >>> sayHello = "hello world!" >>> print(sayHello) hello world! >>> sayHello = ''' ... hello, ... world! ... ''' >>> print(sayHello) hello, world! >>> sayHello = """ ... hello, ... world! ... """ >>> print(sayHello) hello, world! >>> sayHello '\nhello,\nworld!\n' >>> >>> hello = 'he said "hello"' >>> print(hello) he said "hello" >>> thi..
>>> True True >>> False False >>> 3 > 1 True >>> 3 >> 3 == 3 True >>> 3 != 4 True >>> 'Hello' == 'Hello' True >>> 'Hello' == 'hello' False >>> 'Hello' != 'hello' True >>> x = 1 >>> y = 1.0 >>> x is y False >>> x is not y True >>> x == y True >>> id(x) 4350253760 >>> id(y) 4353630864 >>> True and True True >>> True and False False >>> False and False False >>> True or True True >>> True or False ..
# sep : 값 사이 문자 넣기 >>> print(1, 2, 3) 1 2 3 >>> print('hello','world') hello world >>> print(1,2,3,sep=',') 1,2,3 >>> print('hello','world',sep='! ') hello! world >>> print(1,2,3,sep='\n') 1 2 3 # end : print 후 \n이 아닌 다른 것으로 바꿀 경우 >>> print(1); print(2); print(3); 1 2 3 >>> print(1, end=''); print(2, end=''); print(3); 123
# 변수 규칙 영문 문자와 숫자 사용 가능 대소문자 구분 문자부터 시작해야 함 _로 시작 가능 특수문자 사용 불가 파이썬의 키워드 사용 불가 >>> x = 10 >>> y = 'hello' >>> print(x) 10 >>> print(y) hello >>> type(x) >>> type(y) >>> x1, y1 = 10, 'hello' >>> print(x1, y1) 10 hello >>> type(x1) >>> type(y1) >>> x, y = 10, 20 >>> x, y = y,x >>> print(x, y) 20 10 >>> print(x) 20 >>> del x >>> print(x) Traceback (most recent call last): File "", line 1, in NameEr..

# 사칙연산 # 버림 나눗셈(floor division) : 나눗셈 후 소숫점 이하 버림 # 나머지 연산 # 몫과 나머지 함께 구하기 # 거듭제곱연산 # int() : 정수로 형변환. 소숫점 이하는 버림 처리 # float() : 실수로 형변환 # type() : 자료형 구하기 # 2진수, 8진수, 16진수

# PyCharm install URL : https://www.jetbrains.com/pycharm/ PyCharm: the Python IDE for Professional Developers by JetBrains The Python & Django IDE with intelligent code completion, on-the-fly error checking, quick-fixes, and much more... www.jetbrains.com # Create New Project # terminal # shebang (셔뱅) : 현재 파일을 실행해 줄 프로그램을 지정할 때 사용 -> 파이썬 경로 지정 [참고] 파이썬 코딩도장(https://www.aladin.co.kr/shop/wproduc..