"Python -c"의 두 판 사이의 차이

7번째 줄: 7번째 줄:
testuser01@localhost:~$ python -c "print('hello')"
testuser01@localhost:~$ python -c "print('hello')"
hello
hello
</syntaxhighlight>
<syntaxhighlight lang='console'>
testuser01@localhost:~$ python -c "print('hello'); print('world'); print('lorem')"
hello
world
lorem
</syntaxhighlight>
</syntaxhighlight>



2021년 4월 5일 (월) 18:16 판

1 개요

python -c

2 한줄 실행

testuser01@localhost:~$ python -c "print('hello')"
hello
testuser01@localhost:~$ python -c "print('hello'); print('world'); print('lorem')"
hello
world
lorem

3 여러줄 실행

python -c "print('hello')
print('world')
print('lorem')"
testuser01@localhost:~$ python -c "print('hello')
> print('world')
> print('lorem')"
hello
world
lorem

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}