[Python] Command Line Flags
ยท
๐Ÿ Python
Python Command Flag python -c - (command) ์ง์ ‘ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด Python ์ฝ”๋“œ๋ฅผ ์‹คํ–‰ ex) python -c "import pandas as pd" python -m - (module) Python ๋ชจ๋“ˆ์„ ์Šคํฌ๋ฆฝํŠธ๋กœ ์‹คํ–‰. ex) 'python -m http.server' ํ˜„์žฌ ๋””๋ ‰ํ† ๋ฆฌ์—์„œ HTTP ์„œ๋ฒ„ ์‹คํ–‰ python -i - (interactive) ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰ ํ›„ ๋Œ€ํ™”ํ˜• ๋ชจ๋“œ๋กœ ์ง„์ž… ex) ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰ ํ›„ interpreter๋กœ ์ง„์ž… python -O - (Optimize) ์ตœ์ ํ™” ๋ชจ๋“œ๋ฅผ ํ™œ์„ฑํ™”, assert๋ฌธ์„ ์ œ๊ฑฐํ•˜๊ณ  `__debug__`๋ฅผ 'False'๋กœ ์„ค์ • python -B - (bytecode) .pyc ํŒŒ์ผ์„ ์ƒ์„ฑํ•˜๋Š” ๊ฒƒ์„ ๋ฐฉ์ง€. ๋ณดํ†ต ๊ฐœ๋ฐœ ์ค‘..
๋‹คํ–ˆ๋‹ค
'command flags' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก