1 개요[ | ]
- python -c
2 한줄 실행[ | ]
Console
Copy
testuser01@localhost:~$ python -c "print('hello')"
hello
Console
Copy
testuser01@localhost:~$ python -c "print('hello'); print('world'); print('lorem')"
hello
world
lorem
3 여러줄 실행[ | ]
Bash
Copy
python -c "print('hello')
print('world')
print('lorem')"
Console
Copy
testuser01@localhost:~$ python -c "print('hello')
> print('world')
> print('lorem')"
hello
world
lorem
4 같이 보기[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.