Python (3) 반응형 썸네일형 리스트형 comment -Python (open) 1. # 으로 2.'''~~~~~~''' 여러 줄 3. 단축키(Shortcut)로 > (ctrl + / ) 해제시도 동일 https://codechacha.com/ko/python-comments-and-shortcut/ 파이썬 주석 처리, 단축키 소개 파이썬에서 코드들을 주석 처리하는 방법을 소개하며, 단축키를 소개합니다. `#`을 입력하고 그 다음 글자를 입력하면 해당 내용은 주석 처리됩니다. 따라서 프로그램을 실행될 때 주석으로 처 codechacha.com 2. Calculation Summary - Python (Open) print( "hi hi hi hi hi hi " ) # strings / space print( 3+ 5 ) #a space doesn't affect the result print( 5-3 ) # subtraction print( 3*5 ) # multiplication print( 3**5 ) # exponents print ( 3/5 ) # 0.6 division -float print( 3//5) # 0 integer print ( 3%5 ) # 3 the remainder print ( 5%3 ) # 2 the remainder OUTPUT L/Python text/HelloWorld.py" hi hi hi hi hi hi 8 2 15 243 0.6 0 3 2 PS C:\Users\user> Python 1. code directly in the Python terminal (open) Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> 1+2 3 >>> print("hello world") hello world >>> exit() 이전 1 다음