본문 바로가기

프로그래밍

(14)
[Error] SpringBoot 프로젝트를 Gradle로 빌드 오류 오류 No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.2.3 was found. The consumer was configured to find a library for use during runtime, compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.6' but: 해결 plugins { id 'java' id 'org.springframework.boot' version '2.7.16' id ..
[Github] 깃허브 Contributions 잔디심기 안될때 local의 user.email(이메일주소)와 github 계정의 이메일 주소가 같아야 한다. 1. 이메일 주소 확인하기 git config user.email 2. 이메일 주소 바꿔주기 git config --global user.email 바꿀@이메일주소.com https://velog.io/@think2wice/Github-%EB%B6%84%EB%AA%85-commit%EC%9D%84-%ED%96%88%EB%8A%94%EB%8D%B0-%EC%99%9C-contribution-%EA%B7%B8%EB%9E%98%ED%94%84%EB%8A%94-%EC%95%88%EC%B1%84%EC%9B%8C%EC%A7%80%EC%A7%80 [Github] 분명 commit을 했는데 왜 contribution 그래프는 ..
[Error] TypeError: 'str' object is not callable https://olppaemmit.tistory.com/m/214 [Error] zsh: command not found: python (Mac OS) python을 설치했는데 python --version으로 하면 python을 모른다고 하고 python3 --version으로 하면 버전을 알려준다. python으로 사용하고 싶어서 다음과 같은 방법을 사용했다. 1. 파이썬3 설치된 위치 확인 olppaemmit.tistory.com TypeError: 'str' object is not callable 자료형인 str을 변수명으로 사용하고 그 변수를 사용하려고 했으므로 에러 발생. str이라는 이름의 변수를 찾아 변수명을 바꿔주면 됨.
[Python] 리스트(list) 리스트(list) 여러 개의 값을 하나의 변수로 관리하기 위한 기능 리스트 요소 개수를 조사하는 방법 : len() 함수 a = [1,2,3,4,5,6,7] len(a) #len(a)는 7 리스트는 데이터 계산을 한번에 실시할 수 있어 매우 편리 points = [88, 76, 67, 43, 79, 80, 91] sum_v = 0 for i in points: sum_v+=i print(i, "점을 더한 합계는 ", sum_v) ave = sum_v / len(points) print("평균점은 ", ave, "점") 파이썬에는 리스트에 들어 있는 값의 합계를 한 번에 구할 수 있는 sum()이라는 함수가 마련 for 구문을 사용하지 않아도 리스트의 각각의 요소를 모두 더해서 합계를 구할 수 있음 poi..
[Python] while문, for문, break, else while True : pyeong = input("평수는?") if pyeong == "" or pyeong == "q": break m2 = int(pyeong) * 3.31 print("{0}평은 {1}제곱미터입니다.".format(pyeong, m2)) v = 0 for i in range(1, 11): v = v + i print(i, "을(를) 더하면", v) print("1에서 10까지 모두 더하면...", v) for문의 "범위"부분에는 range()함수를 사용할 수 있다. range() 사용법 1. 매개변수에 숫자를 한 개 넣는 방법 ex) range(5) -> 0~5 2. 매개변수에 숫자를 두 개 넣는 방법 ex) range(0, 5) -> 0~4 / range(1,5) -> 1~4 3..
[운영체제] 프로세스의 상태 (Process State) 프로세스의 다섯 가지 상태 - 생성 상태 (new) - 준비 상태 (ready) - 실행 상태 (run) - 완료 상태 (terminate) - 대기 상태 (wait)