본문 바로가기

컴퓨터프로그래밍

파이썬 실행방법

hello world를 출력하는 파일 : first.py

 

0. python interactive shell(계속해서 상호작용하는 shell, 대화형식으로 흘러감)로 실행하기

windows+r → cmd → python → print('hello world')

1. script file로 실행하기

vscode 터미널에 python first.py 입력

 

2. module로 실행하기

vscode 터미널에 python -m first 입력

 

 

'컴퓨터프로그래밍' 카테고리의 다른 글

VSCODE  (0) 2024.05.13
OOP  (0) 2024.05.07
programming 소개  (0) 2024.05.01
VSCODE에서 'hello world' 출력하기  (0) 2024.03.12
Visual Studio Code 단축기  (0) 2024.03.12