Python 1. 개발 환경 설정

min seung moon·2021년 8월 10일
0

PythonBasic

목록 보기
1/7

1. 파이썬 언어의 장점

  • 문법이 간결
  • 다양한 운영체제 지원
  • GUI Application 개발(PyQT)
  • 방대한 라이브러리 지원
  • 범용 언어(네트워크, 웹 데이터분석, 기계 학습 등)

2. 개발 환경 설정

01. 파이썬 설치

https://www.python.org/downloads/


02. VSCode 설치

https://code.visualstudio.com/



03. VSCode 설정

  • Extention에서 Python 설치

  • ctrl + shift + p

    • 보기 > 명령 팔래트
    • python select interpreter


04. Test 실행

  • section01.py
# Section01
# 파이썬 소개 및 작업 환경 설정

# 기본 출력
print("Hello Python!")

05. task runner 설정



{
  // See https://go.microsoft.com/fwlink/?LinkId=733558
  // for the documentation about the tasks.json format
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Project Label",
      "type": "shell",
      "command": "python",
      "args" : [
        "${file}"
      ],
      "presentation": {
        "reveal": "always",
        "panel": "new"
      },
      "options": {
        "env": {
          "PYTHONIOENCODING" : "UTF-8"
        }
      },
      "group": {
        "kind": "build",
        "isDefault": true
      }
    }
  ]
}

  • ctrl + shift + b

06. 언어 설정



3. Mac OS

01. VSCode Mac

https://code.visualstudio.com/download








{
  // See https://go.microsoft.com/fwlink/?LinkId=733558
  // for the documentation about the tasks.json format
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Project Label",
      "type": "shell",
      "command": "python",
      "args" : [
        "${file}"
      ],
      "presentation": {
        "reveal": "always",
        "panel": "new"
      },
      "options": {
        "env": {
          "PYTHONIOENCODING" : "UTF-8"
        }
      },
      "group": {
        "kind": "build",
        "isDefault": true
      }
    }
  ]
}

02. Python

https://www.python.org/downloads/macos/





03. 가상환경 설정

profile
아직까지는 코린이!

0개의 댓글