목록파이썬 (148)
투케이2K

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# --------------------------------------------------------------# 1. ord(c)..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [사전) 설정 사항] [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------import csv# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# ------------------------------------------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [사전) 설정 사항] [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------import csv# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# ------------------------------------------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [사전) 설정 사항] [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------import xml.etree.ElementTree as ET# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# ------------------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [사전) 설정 사항] [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------import xml.etree.ElementTree as ET# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# ------------------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [사전) 설정 사항] [소스 코드]# --------------------------------------------------------------# [main start]# --------------------------------------------------------------# [open : 텍스트 파일 열기 수행]f = open("test.txt", 'w')# [for 문을 돌면서 텍스트 파일 쓰기]for i in range(1, 10): data = "%d 번째 줄 입니다 \n" % i print(data) # [로그 출력] f.write(data) # [파일 쓰기]# [close 파일 ..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [사전) 설정 사항] [소스 코드]# --------------------------------------------------------------# [main start]# --------------------------------------------------------------# [초기 텍스트 파일 읽기 결과를 담을 변수 선언]result = ""# [with open : 텍스트 파일 읽기 : close 종료 필요 없음]with open("test.txt", "r") as f: result = f.read()# [로그 출력]print("")print("---------------------------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [소스 코드] # --------------------------------------------------------------# [main start]# --------------------------------------------------------------# [각 2진수, 8진수, 16 진수 변수 선언]bin = "1010"oct = "12"hex = "a"# [10 진수 값으로 변환 수행]binToDec = int(bin, 2) octToDec = int(oct, 8) hexToDec = int(hex, 16) # [로그 출력]print("")print("------------------------------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [소스 코드]# --------------------------------------------------------------# [main start]# --------------------------------------------------------------# [10 진수 변수 선언 실시]data = 10# [10 진수 >> 2진수, 8진수, 16진수 변환 수행]bin = bin(data)[2:]oct = oct(data)[2:]hex = hex(data)[2:]# [로그 출력]print("")print("----------------------------------------")print("data :: ", data)p..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------import base64import hashlibfrom Crypto.Cipher import AES# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# -----------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------import base64import hashlibfrom Crypto.Cipher import AES# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# -----------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------import base64import hashlibfrom Crypto.Cipher import AES# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# -----------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------import base64import hashlibfrom Crypto.Cipher import AES# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# -----------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------import base64import hashlibfrom Crypto.Cipher import AES# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# -----------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------import base64import hashlibfrom Crypto.Cipher import AES# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# -----------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [방법 설명]

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------import hashlib# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# -----------------------------------------------------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------import hashlib# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# -----------------------------------------------------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------import hashlib# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# -----------------------------------------------------------..

[개발 환경 설정]개발 툴 : VsCode개발 언어 : python [소스 코드]# --------------------------------------------------------------# [import]# --------------------------------------------------------------import hashlib# --------------------------------------------------------------# --------------------------------------------------------------# [요약 설명]# -----------------------------------------------------------..