본문 바로가기
728x90
반응형

input3

[Ex] 사칙연산기 (CLI) 간단 구현하기-입력받기. 사칙연산기 (CLI) 간단 구현하기 다음을 참고:2024.07.24 - [Python] - [Python] 사용자와 상호작용: 입력받기: input, sys.argv and argparse [Python] 사용자와 상호작용: 입력받기: input, sys.argv and argparseinput() 함수 사용하기2023.10.10 - [Python] - [Python] input 함수 사용하여 사용자 입력받기. [Python] input 함수 사용하여 사용자 입력받기.Python의 input() 함수는표준 입력 스트림(stdin)으로부터 데이터를 입ds31x.tistory.com간단한 구현:❯ python hw.pyEnter operation (+,-,*,/) : +a = 3b = 4addition: 3.. 2025. 9. 15.
CLI Program에서의 arguments - argparse모듈 0. CLI(Command Line Interface) Program (=CLI 명령어)에서 사용되는 arguments 대한 주요 용어Command: 실행할 프로그램/스크립트 이름.POSIX 공식 용어로는 utility 임. 예) python, git, lsArgument: 명령 뒤에 오는 모든 인자의 총칭. Parameter라고도 불림.POSIX용어에선 operands, options 를 선호하나, 일반적으로는 Argument 가 보다 많이 사용됨.positional argument과 option, option argument를 모두 포함Positional Argument: 옵션 이름 없이 위치로 의미가 정해지는 인자POSIX에서는 operand (피연산자) 라고도 불리며 보통 목표/대상 의 경로 등이.. 2025. 8. 12.
[Python] input 함수 사용하여 사용자 입력받기. Python의 input() 함수는표준 입력 스트림(stdin)으로부터 데이터를 입력받는 함수Terminal에서 수행되는 CLI (Command Line Interface) 프로그램은입력을 stdin (표준 입력, standard input)에서 받아드리고출력은 stdout (표준 출력, standard output)에서 수행함.stdout과 stdin은 일종의 file stream이며데이터를 해당 stream에 흘려보내거나 흘려받아서 출력과 입력이 이루어짐. A stream is a fairly abstract, high-level conceptrepresenting a communications channel to a file, device, or process.2024.09.11 - [CE] - .. 2023. 10. 10.
728x90
반응형