반응형 [Python & Ruby]31 [Python & Ruby] STRING Python : print('Hello') print("Hello") print("Hello 'world'") print('Hello "world"') Ruby : puts('Hello') puts("Hello") puts("Hello 'world'") puts('Hello "world"') Output : Hello Hello Hello 'world' Hello "world" Python : print('Hello '+'world') print('Hello '*3) print('Hello'[0]) print('Hello'[1]) print('Hello'[2]) Ruby : puts('Hello '+'world') puts('Hello '*3) puts('Hello'[0]) puts('Hello'[1]).. 2020. 12. 10. [Python & Ruby] Hello World! Python ∙ Interactive 기반 MacBook-Pro:~ Hevton$ python3 Python 3.9.0 (v3.9.0:9cf6752276, Oct 5 2020, 11:29:23) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> print("Hello World!"); Hello World! >>> ^D MacBook-Pro:~ Hevton$ 실행할 때 : python3 나갈 때 : Ctrl + d ∙ File 기반 MacBook-Pro:p_r Hevton$ nano hello_python.py -> print("Hello World!\.. 2020. 12. 10. [Python] Python3 설치 www.python.org Welcome to Python.org The official home of the Python Programming Language www.python.org Downloads > Python 3.x.x 2020. 12. 10. 이전 1 ··· 5 6 7 8 다음 반응형