파이썬(Python)기초공부-1│설치 및 기본세팅하기
1. 파이썬(Python) 설치하기
Google에 검색하여 Python 홈페이지 접속 or 하단 링크
운영체제에 맞는 설치 파일(exe) 다운로드 후 설치진행
Add Python 0.0 to PATH 체크
Custonmize installation 클릭
하단 경로 C:\Python 입력 후 Install 진행
2. 비주얼 스튜디오 코드(Visual Studio Code) 설치하기
2. 비주얼 스튜디오 코드(Visual Studio Code) 설치하기
Google에 검색하여 Visual Studio Code 홈페이지 접속 or 하단 링크
운영체제에 맞는 설치 파일(exe) 다운로드 후 설치진행
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
3. 비주얼 스튜디오 코드(Visual Studio Code) & 파이썬(Python) 세팅하기
바탕화면에 폴더 생성 (폴더명:PythonWorkspace)
Visual Studios Code 실행 후 생성한 폴더 열기
New File 클릭 후 새 파일 생성 : 파일명 'Helloworld.py'
왼쪽 메뉴 > Extensions(Ctrl+Shift+X) 클릭 후 Python 설치(Install)진행
다시 Helloworld.py로 돌아와 print("hello world")작성 후 저장 : File > Save
왼쪽 메뉴 > Run and Debug(Ctrl+Shift+D) 클릭 후 Python File 선택
Run with Python 버튼 클릭 후 Python File 선택 : Launch.json 파일 생성