본문 바로가기

반응형

프로그래밍

(49)
정보처리 기사 필기 시험문제 풀이 기존 CBT사이트들은 전체 문제를 풀어야 점수가 판단되는데. 이 사이트는 과목당 1문제식만 풀어도 합격여부를 바로 알 수 있습니다. 답이 틀릴경우 해설을 제공해 줍니다. 특정과목이 많이 틀릴경우 다음문제는 해당 과목을 위주로 먼저 배정되는 구조입니다. https://test.unidago.com/ 정보처리기사 기출문제 - 랜덤 학습정보처리기사 필기 기출문제를 랜덤으로 풀어보세요. 과목별 점수와 합격 여부를 실시간으로 확인할 수 있습니다.test.unidago.com
[python] mysql 백업파일에서 특정 테이블 부분만 별도로 저장하기 import reimport argparsedef extract_table_data(input_file, output_file, table_name): with open(input_file, 'r', encoding='utf-8') as infile, open(output_file, 'w', encoding='utf-8') as outfile: in_table = False table_content = [] for line in infile: if line.strip().startswith(f"DROP TABLE IF EXISTS `{table_name}`"): in_table = True ..
PostgreSQL에서 auto_increment 값 조정하는 방법 SELECT last_value FROM your_table_idx_seq;형태로 기존 갑을 확인 할 수 있으며, SELECT setval('your_table_idx_seq', (SELECT MAX(idx) FROM your_table) + 1); 형태로 기존 값을 현재값의 가장 높은값 +1로 조정할 수 있다.
input type=month 이전달, 다음달 넣기 input type=month에 이전달과 다음달 넣기 버튼입니다. 이전 월 다음 월
[ai] Adobe illustrator multiple file into one 어도비 일러스트레이트에서 여러개의 파일을 하나의 대지(artboard)에 합치는 스크립트 입니다. singsinghe/mergeAiFile: This program is combines multiple illustrations and pdf files into one file. (github.com) GitHub - singsinghe/mergeAiFile: This program is combines multiple illustrations and pdf files into one file. This program is combines multiple illustrations and pdf files into one file. - GitHub - singsinghe/mergeAiFile: This pr..
한진택배 api PHP에서 HMACSha245 값 처리방법 php로 한진택배 송장출력 api를 작성중에 관련 소스가 없어서 오픈한다. $hanjin_client_id = "고객사 id"; // 영문아이디 $hanjinApiKey = "한진APIKEY"; $hanjinSecretKey = "한진SecretKey"; $method = "POST"; // "POST"; // $_SERVER['REQUEST_METHOD']; $requestUrl = "http://$_SERVER[HTTP_HOST]"."$_SERVER[REQUEST_URI]"; $queryString = getQueryString($requestUrl); $timestamp = date("YmdHis"); $message = $timestamp . $method . $queryString . $hanj..
[php] 원천징수 계산함수(3.3%) function getTaxAfter($price){ $a = round(floor($price*0.03),-1); $b = round(floor($a*0.1),-1); $p = $price - ($a+$b); return $p; }
파이썬 ftp로 접속후 한글파일 다운로드 import ftplib import os # ftp 정보 host = 'server' user = 'id' passwd = 'pw' try: # ftp 연결 with ftplib.FTP() as ftp: ftp.connect(host=host,port=21) print(ftp.getwelcome()) # 접속 메세지 출력 ftp.encoding = 'utf-8' ftp.sendcmd('OPTS UTF8 ON') # 이 문구를 넣어줘야 한글 사용이 가능함 s = ftp.login(user=user,passwd=passwd) ftp.cwd('/테스트폴더A') dirlist = ftp.nlst() print(dirlist) ftp.cwd('테스트폴더B') dirlist = ftp.nlst() print(di..

반응형