맥(솔라리스)
[mac] vscode(Visual Studio Code)에서 Python 개발환경 설정
변군이글루
2022. 11. 13. 17:14
반응형
vscode(Visual Studio Code)에서 Python 개발환경 설정
vscode 명령 표시 및 실행
- MAC : command + shift + p
- WINDOWS : ctrl + shift + p
명령 표시 및 실행 창에서 "Python: Select Interpreter" 검색
인터프리터 선택
- /opt/homebrew/bin/python3 선택
test1.py 코딩
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import os
import requests
url = "https://www.sangchul.kr"
response = requests.get(url)
print("status code :", response.status_code)
python 실행(Ctrl + F5)
참고URL
- 온라인 파이썬 컴파일러(Python Online Compiler) : https://www.programiz.com/python-programming/online-compiler/
728x90
반응형