본문 바로가기
반응형

전체 글254

MySQL 에서 정보처리기사 SQL 문제 실습 해보기 https://artra.tistory.com/entry/MySQL-Workbench-%EC%84%A4%EC%B9%98-%EB%98%90%EB%8A%94-Failed-to-Connect-to-MySQL-at-1270013306-with-user-root-%EC%97%90%EB%9F%AC-%ED%95%B4%EA%B2%B0 MySQL 설치방법은 위 에서 참조 왼쪽 SCHEMAS 흰색 창에서 오른쪽 클릭하면 Create Schema 클릭 Name 은 test 오른쪽 중간에 보면 Apply 클릭 아무것도 건들지 말고 Apply - Finish 클릭 왼쪽 SCHEMAS 창에 test 가 보이면 중앙 test- Schema 는 x 를 누른다 마우스로 test에서 오른쪽을 누른다음 Set as Default Sche.. 2023. 8. 15.
MySQL Workbench 설치 또는 Failed to Connect to MySQL at 127.0.01:3306 with user root 에러 해결 MySQL Workbench Failed to Connect to MySQL at 127.0.01:3306 with user root Unable to connect to localhost MySQL 설치후 위같은 에러가 뜬다면 https://dev.mysql.com/downloads/windows/installer/8.0.html MySQL :: Download MySQL Installer Note: MySQL 8.0 is the final series with MySQL Installer. As of MySQL 8.1, use a MySQL product's MSI or Zip archive for installation. MySQL Server 8.1 and higher also bundle MyS.. 2023. 7. 31.
미국 복권 구매대행 키오스크 합정역에... 미국 복권? 구매대행 키오스크? 인생역전의 기회? 억... 조.. 내 인생이.. 드디어? 아.. 사기 조심하자 2023. 7. 26.
파이썬 numpy pandas 엑셀파일 불러오기 및 시각화 실습에 사용 된 자료 기상청 - 기상자료개방포털 / 서울 5월~6월 / 평균기온 삭제 https://data.kma.go.kr/stcs/grnd/grndTaList.do?pgmNo=70 In [1]: import numpy as np import pandas as pd import matplotlib.pyplot as plt In [2]: seoul_tem=pd.read_csv("C:\\Users\\LEEJUNGJIK\\Python\\AI\\seoul_tem.csv", index_col=None) ## 윈도우즈 환경에서는 경로마다 \\ 두개씩 # seoul_tem=pd.read_csv("C:\\Users\\LEEJUNGJIK\\Python\\AI\\sales_data.csv", index_col="mon.. 2023. 7. 18.
아나콘다 파이썬 jupyter notebook에서 이미지가 open이 안된다면 아나콘다 프롬프트에서 실행했던 파이썬 jupyter notebook 에서 from PIL import Image image = Image.open('image.png') print(image.format) print(image.mode) print(image.size) * 파일이 python 폴더 안에 있는지 확인해보길 바란다. - png 파일인데도 JPEG로 인식한다. 위와 같이 떠야 하는데 이런 저런 이유로 오류가 뜬다면? (저는 이미지open이 매우 잘되었다 ㅈㅅ) 아나콘다 프롬프트에서 pip install pillow 2023. 7. 13.
파이썬 - 클래스 - 상속 , 출력 class Family: # 클래스(부모 객체) - Family def __init__(self, name, age): self.name = name # 인스턴스 변수(속성) - 이름 self.age = age # 인스턴스 변수(속성) - 나이 def greet(self): # 메소드(행위) - 인사하기 print("안녕하세요.") def get_age_in_future(self, year): # 메소드(행위) - 미래 나이 계산하기 age_in_future = self.age + year # 현나이 + (5) 5년뒤 나이 더하기 print(f"{self.name} {year}년 후 나이 : {age_in_future}") class Grandparents(Family): # Grandparents, 클.. 2023. 7. 7.
파이썬 - 튜플, 리스트, 딕셔너리 출력 방법 # 튜플tuple_1 = (1, 'apple', 2, 'abc')# apple과 2를 각각 출력하고 싶다면print(tuple_1[1]) # apple 출력print(tuple_1[2]) # 2 로 출력 # apple과 2를 같이 출력하고 싶다면print(tuple_1[1:3]) # 슬라이싱 출력 가능# ('apple', 2) 으로 출력 # 리스트list_1 = (1, 'apple', 2, 'abc')# apple과 2를 각각 출력하고 싶다면print(list_1[1]) # apple 출력print(list_1[2]) # 2 로 출력 # apple과 2를 같이 출력하고 싶다면print(list_1[1:3]) # 슬라이싱 출력 가능# ('apple', 2) 으로 출력 # 딕셔너리dict_1 = {'num1.. 2023. 7. 6.
파이썬 리스트 슬라이싱 종류 num = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]print(len(num))# 10print(num[0], num[1], num[9])# 0 1 9print(num[0:], num[1:])# num[0:] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]# num[1:] = [1, 2, 3, 4, 5, 6, 7, 8, 9]print(num[:9], num[:10]) # num[9]와 num[:9]는 다름# num[:9] = [0, 1, 2, 3, 4, 5, 6, 7, 8]# num[:10] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]# num[9]는 주소 0~9 총 10개# num[:9]는 [0:1] 으로 시작 하는 것과 같기 때문에# 한개가 밀려 있다고 생각 하면.. 2023. 7. 5.
2020년 정보처리기사 실기 4회 프로그래밍 문제 모음 // 2020년 4회 5번 문제 자바 class good { public static void main (String[] args) { int[]a = new int[8]; int i=0; int n=10; while (n>0) { a[i++] = (n%2); n /= 2; } for(i=7; i>=0; i--){ System.out.print(a[i]); } } } // 2020년 4회 5번 문제 자바 -> C언어 #include int main() { int a[8]; int i = 0; int n = 10; while (n > 0) { a[i++] = n % 2; n /= 2; } for (i = 7; i >= 0; i--) { printf("%d", a[i]); } return 0; } // 20.. 2023. 7. 4.
반응형