본문 바로가기

전체 글54

[Study] Python, eval,lamda,map 공부하다가 몰라서 정리 1. eval(쉽게 이야기 하면 문자나 숫자로 구성된 문자를 파이션 표현식으로 바꾼다(산술식) 하지만 사용하기 매우 조심해야 한다. eval is a built-in function in Python that evaluates a string as a Python expression. The expression can be a simple value, such as a string or a number, or a more complex expression, such as an arithmetic expression. For example, the following code will evaluate the string "2 + 3" as a Python expression and p.. 2023. 2. 1.
Mini -Project #1-1 3자리 숫자 야구 게임 with openai(좌절) chatgpt있어서 한번 해봤는데 좌절 초보인 나하고 비교가 안됨 https://chat.openai.com/chat import random def baseball_game(): target = random.sample(range(0, 10), 3) tries = 0 while True: tries += 1 guess = list(map(int, input("Enter your guess (3 digits): ").strip())) if len(guess) != 3: print("Invalid input. Try again.") continue strikes = 0 balls = 0 for i in range(3): if guess[i] == target[i]: strikes += 1 elif gues.. 2023. 1. 31.
Mircrosoft lists에서 계산식 열 추가하기 Microsoft lists에서 계산시 넣는 방법 정리(테슬라,현대 비교 테이블 작성중) 1. 테슬라 매출은 달러 이고 현대차 매출은 원화라서 비교하기 위해 달러 X 환율 계산식이 필요함 1. sharepoint 열기 클릭 2. 열추가->모든 형식 보기 3. 열추가하기 4. 결과확인 결국 power bi로 도식화하기 위해서 lists로 정리중이다. lists 자체에서는 만들어지지 않는듯(개인생각) 그래서 lists->sharepoint->열추가해서 해결함 2023. 1. 27.
1. React 시작하기 잘모른다. 올해는 리액트로 프로젝트 많이 해보자 1. 준비 visual studio code 설치 https://code.visualstudio.com/ Visual Studio Code - Code Editing. Redefined Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows. code.visualstudio.com node js 설치 https://nodejs.o.. 2023. 1. 17.