| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- SQL Joins Visualizer
- 다중 암호화 키
- N2TWinform
- stickiness
- n2t
- 패키지 관리자
- ssh-keygen
- Wau
- github
- 노션
- sql join
- range retention
- UX리서치
- DAU
- pem
- classic retention
- 티스토리
- MAU
- 범위리텐션
- 오픈서베이
- 파이프(|)
- 정처기필기
- openssh
- passphrase
- 클래식리텐션
- 롤링리텐션
- 하이퍼바이저
- rolling retention
- 리텐션
- 데이터리안
- Today
- Total
목록Languages/Python (7)
TobeSteady
외장함수sys 모듈 pickle 모듈OS모듈shutil 모듈glob 모듈random 모듈 외장함수sys 모듈 : 시스템과 관련된 함수나 변수를 담고 있는 모듈. - sys.exit함수 : 파이썬 프로그램 자체를 종료시킴.import sys print(list(zip([1, 2, 3],[4, 5, 6], [7, 8, 9]))) sys.exit() print(list(zip("abc","def")))결과값 [(1, 4, 7), (2, 5, 8), (3, 6, 9)]An exception has occurred, use %tb to see the full traceback.SystemExitC:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py:345..
내장 함수 : 시스템에서 기본적으로 제공해주는 함수.abs함수 : 입력받은 수의 절대값을 반환하는 함수.all함수 : 자료형(list, tuple)을 입력받음any함수 : 자료형(list, tuple)을 입력받음chr 함수 : ASCII 코드(숫자)를 입력받아 해당하는 문자를 출력하는 함수.dir함수 : 해당 객체가 자체적으로 가지고 있는 변수나 함수를 보여줌divmod 함수enumerate 함수eval함수 : 실행 가능한 문자열을 실행하여 결과 값을 돌려줌.filter 함수 : 조건이 들어간 함수를 먼저 생성 후 값을 넣어서 걸러주는 역할.int 함수isinstance 함수map 함수max 함수 : 자료형이 같을 때 비교하여 제일 큰 값을 반환.min함수 : 자료형이 같을 때 비교하여 제일 작은 값을 ..
프로그래머스 level2 "JadenCase 문자열 만들기"문제를 풀면서 발견하게 된 차이점을 간략하게 적으려고 한다. ## try01. 실패 def solution(s): answer = s.title() return answer ''' 테스트 1 입력값 〉"3people unFollowed me" 기댓값 〉"3people Unfollowed Me" 실행 결과 〉실행한 결괏값 "3People Unfollowed Me"이 기댓값 "3people Unfollowed Me"과 다릅니다. # title() 함수는 조건*을 만족하지 못함. # 조건* : 단, 첫 문자가 알파벳이 아닐 때에는 이어지는 알파벳은 소문자로 쓰면 됩니다. ''' 처음 파이썬 문자열 매서드의 title를 사용하여 문제를 해결하려고 했으나..
datetime datetime package datetime class :날짜와 시간을 함께 저장. date class : 날짜만 저장 time class : 시간만 저장 timedelta class : 시간 구간 정보를 저장 from datetime import date date.today() # 오늘 날짜를 알 수 있는 매서드 >>> datetime.date(2022, 12, 9) today.isoformat() # date 객체를 YYYY-MM-DD 형태의 문자열로 변환해줌. >>>> '2022-12-09' date.fromisoformat('2020-07-18') # YYYY-MM-DD 형태의 문자열을 date 객체로 변환해줌. >>> datetime.date(202..
Bitwise Operators 코딩 테스트를 하던 중 &와 and의 차이를 알지 못해 계속 오류가 발생하였음. bit연산자와 그와 비슷하게 헷갈리는 것들에 대해 정리함. is와 == is identity 연산자 참조 비교(refernce comparsion) == 비교 연산자 값 비교(value comparison) no1_1 = 1 no1_2 = 1 str1_1 = 'teemo' str1_2 = 'teemo' no1_1 == no1_3 # True str1_1 == str1_2 # True str1_1 is str1_2 # Trueno2_1 = 257 no2_2 = 257 str2_1 = "temmo is the cutest chamption in league of leg..
python 진법 변환 n진수 -> 10진수 결과 값은 모두 string python에서는 기본적으로 int()라는 함수를 지원함. int(string, base) 위와 같은 형식으로 사용하며, base에는 진법(notation)을 넣으면 됨. >>> print(int('101',2)) 5 >>> print(int('202',3)) 20 >>> print(int('303',4)) 51 >>> print(int('404',5)) 104 >>> print(int('505',6)) 185 >>> print(int('ACF',16)) 2767 10진수 -> 2, 8, 16진수 2, 8, 16진수는 bin(), oct(), hex() 함수를 지원함 >>> print(bin(11)) 0b1011 >>> print(..
Python String Methods the in-built function (i.e. the functions provided by the Python to operate on strings.) 모든 문자열 매서드는 원래의 문자열을 바꾸지 않음. lower() text = 'pYthon StRing Methods' # lower() function to convert # string to lower case print(f"\nConverted String : {text.lower()}") >>> Converted String : python string methods upper() # upper() function to convert # string to upper case print(f"\nConv..